On Grup creation the user creator is automatically added to the gruop
This commit is contained in:
parent
067f487f8b
commit
e08984af23
|
@ -137,6 +137,10 @@ public class GroupManager {
|
||||||
Group createdGroup = usrManager.createGroup(group);
|
Group createdGroup = usrManager.createGroup(group);
|
||||||
groupId = createdGroup.getID();
|
groupId = createdGroup.getID();
|
||||||
|
|
||||||
|
User user = (User)usrManager.getAuthorizable(folderOwner);
|
||||||
|
|
||||||
|
createdGroup.addMember(user);
|
||||||
|
|
||||||
createVreFolder(groupId, session, accessType!=null?accessType:AccessType.WRITE_OWNER, folderOwner);
|
createVreFolder(groupId, session, accessType!=null?accessType:AccessType.WRITE_OWNER, folderOwner);
|
||||||
|
|
||||||
session.save();
|
session.save();
|
||||||
|
|
Loading…
Reference in New Issue