mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
Merge branch 'develop' into oauth_client
This commit is contained in:
commit
4ad6f74769
@ -284,7 +284,6 @@ object OBPAPI1_2 extends OBPRestHelper with Loggable {
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
oauthServe(apiPrefix{
|
||||
//delete access for specific user to all the views
|
||||
case "banks" :: bankId :: "accounts" :: accountId :: "permissions" :: userId :: "views" :: Nil JsonDelete json => {
|
||||
|
||||
@ -588,7 +588,7 @@ class MongoDBLocalStorage extends LocalStorage {
|
||||
|
||||
HostedAccount.find(By(HostedAccount.accountID,account.id)) match {
|
||||
case Full(acc) => {
|
||||
val privileges = Privilege.findAll(By(Privilege.account, acc.id.get))
|
||||
val privileges = Privilege.findAll(By(Privilege.account, acc.id.get)).sortWith((p1,p2) => p1.updatedAt.get after p2.updatedAt.get)
|
||||
val permissions : List[Box[Permission]] = privileges.map( p => {
|
||||
if(
|
||||
p.ourNetworkPermission.get != false
|
||||
@ -654,7 +654,7 @@ class MongoDBLocalStorage extends LocalStorage {
|
||||
Empty
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
def revokePermission(bankAccountId : String, view : View, user : User) : Box[Boolean] = {
|
||||
user match {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user