Lucio Lelii 5 years ago
parent 63f17b700d
commit 270c07514d

@ -47,7 +47,7 @@ public class AuthorizationChecker {
AccessControlEntry[] entries = accessControlList.getAccessControlEntries();
for (AccessControlEntry entry: entries) {
Authorizable authorizable = ((JackrabbitSession) session).getUserManager().getAuthorizable(id);
Authorizable authorizable = ((JackrabbitSession) session).getUserManager().getAuthorizable(entry.getPrincipal());
if (!authorizable.isGroup() && entry.getPrincipal().getName().equals(login)) return;
if (authorizable.isGroup() && ((Group) authorizable).isMember(entry.getPrincipal())) return;
}

@ -103,7 +103,7 @@ public class GroupManager {
Group createdGroup = usrManager.createGroup(group);
groupId = createdGroup.getID();
createVreFolder(groupId, session, accessType);
createVreFolder(groupId, session, accessType!=null?accessType:AccessType.WRITE_OWNER);
session.save();
}catch(Exception e) {

@ -25,7 +25,7 @@ no. 654119), SoBigData (grant no. 654024), AGINFRA PLUS (grant no. 731001).
Version
--------------------------------------------------
1.0.5-SNAPSHOT (2019-04-11)
1.0.5-SNAPSHOT (2019-04-12)
Please see the file named "changelog.xml" in this directory for the release notes.

Loading…
Cancel
Save