mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 18:46:46 +00:00
remote hasView, use hasViewPrivilege instead.
This commit is contained in:
parent
df913d1e93
commit
3b92cd11d0
@ -390,7 +390,7 @@ trait BankAccount extends MdcLoggable {
|
||||
case Some(u) if view.isFirehose && APIUtil.canUseFirehose(u) =>
|
||||
true
|
||||
case Some(u) =>
|
||||
u.hasView(view)
|
||||
u.hasViewPrivilege(view)
|
||||
case _ =>
|
||||
false
|
||||
}
|
||||
|
||||
@ -72,7 +72,6 @@ trait User extends MdcLoggable {
|
||||
(privateViewsUserCanAccess++publicViewsUserCanAccess).distinct
|
||||
|
||||
}
|
||||
final def hasView(v: View): Boolean = allViewsUserCanAccess.contains(v)
|
||||
final def hasOwnerView(bankAccount: BankAccount): Boolean ={
|
||||
//find the bankAccount owner view object
|
||||
val viewImplBox = ViewImpl.find(ViewId("owner"),BankIdAccountId(bankAccount.bankId, bankAccount.accountId))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user