public static bool IsAuthorised(PermissionLevel level, ChatUser user) { return level == user.PermissionLevel; }
public static PermissionLevel FindPermissonLevel(ChatUser user) { return Users.FirstOrDefault(u => u == user)?.PermissionLevel ?? PermissionLevel.None; }