November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi Magnus,
No the access rights of the user are only inherited from its groups, and not the parent rooms.
It is possible to merge two access rights hence producing the same result as inheritence like this:
RoomAccessRights mergedAccessRights = (RoomAccessRights)accessRightsFromChild.Merge(accessRightsFromParent);
Thank you for your answer!
However, I thought that it is perhaps not the best way to add access rights recursively, since it would be impossible to revoke access rights in child rooms.
Is there a way to copy the access rights from one room to another? I imagine setting "normal" access rights for the club forum, and then copy these normal access rights to new club rooms when a new clubs are created. I can use GetAccessRights but that would require me to loop through all existing groups and users. Is there an other way?
Hi,
You can listen to the ClubHandler.ClubAdded event and then get all users/groups that have access rights set for a club with StarCommunity.Modules.Club.Security.SecurityHandler.Instance.GetClubUsers(...)/GetClubGroups(...) and then transfer their access rights, that would limit the result to the actual relevant users/groups.