This commit is contained in:
Lucio Lelii 2019-04-12 15:41:21 +00:00
parent 63f17b700d
commit 270c07514d
3 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ public class AuthorizationChecker {
AccessControlEntry[] entries = accessControlList.getAccessControlEntries(); AccessControlEntry[] entries = accessControlList.getAccessControlEntries();
for (AccessControlEntry entry: entries) { 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() && entry.getPrincipal().getName().equals(login)) return;
if (authorizable.isGroup() && ((Group) authorizable).isMember(entry.getPrincipal())) return; if (authorizable.isGroup() && ((Group) authorizable).isMember(entry.getPrincipal())) return;
} }

View File

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

View File

@ -25,7 +25,7 @@ no. 654119), SoBigData (grant no. 654024), AGINFRA PLUS (grant no. 731001).
Version 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. Please see the file named "changelog.xml" in this directory for the release notes.