This commit is contained in:
Lucio Lelii 2019-09-19 14:31:24 +00:00
parent d3e7f8cbf7
commit ce26ce98fc
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ public class AuthorizationChecker {
Authorizable UserAuthorizable = ((JackrabbitSession) session).getUserManager().getAuthorizable(login);
for (AccessControlEntry entry: entries) {
Authorizable authorizable = ((JackrabbitSession) session).getUserManager().getAuthorizable(entry.getPrincipal());
//TODO; check why sometimes the next line gets a nullpointer
if (!authorizable.isGroup() && entry.getPrincipal().getName().equals(login)) return;
if (authorizable.isGroup() && ((Group) authorizable).isMember(UserAuthorizable)) return;
}