mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:17:09 +00:00
TODO on 200 getPermissionForUserForBankAccount
This commit is contained in:
parent
a8668d8a4f
commit
0db9f26c43
@ -1015,6 +1015,7 @@ trait APIMethods200 {
|
||||
account <- BankAccount(bank.bankId, accountId) ?~! {ErrorMessages.AccountNotFound} // Check Account exists.
|
||||
permission <- account permission(u, providerId, userId)
|
||||
} yield {
|
||||
// TODO : Note this is using old createViewsJSON without can_add_counterparty etc.
|
||||
val views = JSONFactory121.createViewsJSON(permission.views.sortBy(_.viewId.value))
|
||||
successJsonResponse(Extraction.decompose(views))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user