mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-05 17:48:39 -08:00
Webatrice updates (#4366)
This commit is contained in:
@@ -14,7 +14,9 @@ export default class AuthenticationService {
|
||||
}
|
||||
|
||||
static isModerator(user) {
|
||||
return user.userLevel >= webClient.pb.ServerInfo_User.UserLevelFlag.IsModerator;
|
||||
const moderatorLevel = webClient.pb.ServerInfo_User.UserLevelFlag.IsModerator;
|
||||
// @TODO tell cockatrice not to do this so shittily
|
||||
return (user.userLevel & moderatorLevel) === moderatorLevel;
|
||||
}
|
||||
|
||||
static isAdmin() {
|
||||
|
||||
Reference in New Issue
Block a user