supress some log and add a log
This commit is contained in:
@@ -60,6 +60,15 @@ class AppAccessManager : AccessManager {
|
||||
//if role is allowed, or enforcement is turned off or no roles are explicitly allowed
|
||||
handler.handle(ctx)
|
||||
} else {
|
||||
logger.warn(
|
||||
"entity - {}, action {}, user roles = {}, allowed = {}, isAllowed? {}, enforce? {}",
|
||||
entity,
|
||||
action,
|
||||
currentRoles(),
|
||||
allowedRoles,
|
||||
isAllowed,
|
||||
appConfig.enforceRoleRestriction()
|
||||
)
|
||||
ctx.status(HttpStatus.FORBIDDEN).result("user not allowed to do this")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user