Skip to content

Commit

Permalink
allow api to read all connections
Browse files Browse the repository at this point in the history
  • Loading branch information
spaced committed Oct 3, 2024
1 parent ef2e7a2 commit cef3bd6
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ interface BankConnectionAccessRightsController : WriteAccessRightsController, Re
logger.debug("Read permission for '{}' granted through user access for '{}'", getObjectName(), authCtx.name)
true
}
authCtx.hasRole(BusinessRole.ROLE_API) -> {
logger.debug("Read permission for '{}' granted through api role for '{}'", getObjectName(), authCtx.name)
true
}
authCtx.hasRole(BusinessRole.ROLE_GUEST) && isGuestAccess() -> {
logger.debug("Read permission for '{}' granted through guest access for '{}'", getObjectName(), authCtx.name)
true
Expand Down Expand Up @@ -102,6 +106,10 @@ interface BankConnectionAccessRightsController : WriteAccessRightsController, Re
logger.debug("Use permission for '{}' granted through user access for '{}'", getObjectName(), authCtx.name)
true
}
authCtx.hasRole(BusinessRole.ROLE_API) -> {
logger.debug("Use permission for '{}' granted through api access for '{}'", getObjectName(), authCtx.name)
true
}
authCtx.hasRole(BusinessRole.ROLE_GUEST) && isGuestAccess() -> {
logger.debug("Use permission for '{}' granted through guest access for '{}'", getObjectName(), authCtx.name)
true
Expand Down

0 comments on commit cef3bd6

Please sign in to comment.