Skip to content

Commit

Permalink
added debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn committed Sep 4, 2015
1 parent fc04515 commit ad7ca8d
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -112,11 +112,13 @@ public boolean rolesHavePermission(final Session userSession, final String absPa
final Set<String> effectiveRoles = new HashSet<>();

if (resourceAccessRoles.containsKey(agent)) {
LOGGER.debug("Applying WebAC rules for user {} with modes {}", agent, resourceAccessRoles.get(agent));
effectiveRoles.addAll(resourceAccessRoles.get(agent));
} else {
for (final String r : roles) {
if (resourceAccessRoles.containsKey(r)) {
effectiveRoles.addAll(resourceAccessRoles.get(r));
LOGGER.debug("Applying WebAC rules for group {} with modes {}", r, resourceAccessRoles.get(r));
}
}
}
Expand Down

0 comments on commit ad7ca8d

Please sign in to comment.