Bugfix in isOp function

master
Noah 2024-05-10 22:24:07 -07:00
parent e70b439cdd
commit 745c282650
1 changed files with 1 additions and 1 deletions

View File

@ -653,7 +653,7 @@ export default {
}, },
isOp() { isOp() {
// Returns if the current user has operator rights // Returns if the current user has operator rights
return this.jwt.claims.op || this.whoMap[this.username].op; return this.jwt.claims.op || this.whoMap[this.username]?.op;
}, },
isVIP() { isVIP() {
// Returns if the current user has VIP rights. // Returns if the current user has VIP rights.