ChatUserHelperCheckAdminRoomRights Method (Int32) |
Check if current user has admin rights to room.
User have admin rights if one of the following conditions is valid:
- he is global admin
- he has permission ChatPermissionEnum.ManageRooms
- he is creator of this room
- he is associated as admin to this room in table ChatRoomAdmin
- room is support (ChatRoomIsSupport = true) and user has permission ChatPermissionEnum.EnterSupport
Namespace: CMS.ChatAssembly: CMS.Chat (in CMS.Chat.dll) Version: 10.0.0
Syntax public static bool CheckAdminRoomRights(
int roomID
)
Parameters
- roomID
- Type: SystemInt32
Checks rights for this room
Return Value
Type:
BooleanTrue if current user has admin rights to the specified room
See Also