git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@181761 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
d3e7f8cbf7
commit
ce26ce98fc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue