TODO on 200 getPermissionForUserForBankAccount

This commit is contained in:
Simon Redfern 2017-02-22 14:24:11 +01:00
parent a8668d8a4f
commit 0db9f26c43

View File

@ -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))
}