compiled JS

This commit is contained in:
MathMan05 2024-08-12 16:08:22 -05:00
parent 2c068a7978
commit ebce7c0099
5 changed files with 161 additions and 111 deletions

View file

@ -293,6 +293,7 @@ class Permissions{
}
}
hasPermission(name:string):boolean{
if(this.deny){console.warn("This function may of been used in error, think about using getPermision instead")}
if (this.getPermissionbit(Permissions.map[name] as number,this.allow)) return true;
if (name != "ADMINISTRATOR") return this.hasPermission("ADMINISTRATOR");
return false;