Bugfix in isOp function

This commit is contained in:
Noah 2024-05-10 22:24:07 -07:00
parent e70b439cdd
commit 745c282650

View File

@ -653,7 +653,7 @@ export default {
},
isOp() {
// 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() {
// Returns if the current user has VIP rights.