On Grup creation the user creator is automatically added to the gruop

This commit is contained in:
lucio 2020-01-29 11:37:50 +01:00
parent 067f487f8b
commit e08984af23
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,10 @@ public class GroupManager {
Group createdGroup = usrManager.createGroup(group);
groupId = createdGroup.getID();
User user = (User)usrManager.getAuthorizable(folderOwner);
createdGroup.addMember(user);
createVreFolder(groupId, session, accessType!=null?accessType:AccessType.WRITE_OWNER, folderOwner);
session.save();