Default UserPermissionLevel is general.
Esempio n. 1
0
 public static bool IsAuthorised(PermissionLevel level, ChatUser user)
 {
     return level == user.PermissionLevel;
 }
Esempio n. 2
0
 public static PermissionLevel FindPermissonLevel(ChatUser user)
 {
     return Users.FirstOrDefault(u => u == user)?.PermissionLevel ?? PermissionLevel.None;
 }