mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 17:37:00 +00:00
Fix bug where incomplete data on views were being returned for permissions
This commit is contained in:
parent
8219cd3865
commit
a854705ef2
@ -487,7 +487,7 @@ class MongoDBLocalStorage extends LocalStorage {
|
||||
acc <- HostedAccount.find(By(HostedAccount.accountID,account.id))
|
||||
} yield {
|
||||
|
||||
val views: List[ViewImpl] = ViewImpl.findAllFields(Seq[SelectableField](ViewImpl.id_), By(ViewImpl.account, acc), By(ViewImpl.isPublic_, false))
|
||||
val views: List[ViewImpl] = ViewImpl.findAll(By(ViewImpl.account, acc), By(ViewImpl.isPublic_, false))
|
||||
//all the user that have access to at least to a view
|
||||
val users = views.map(_.users.toList).flatten.distinct
|
||||
val usersPerView = views.map(v =>(v, v.users.toList))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user