compiled JS
This commit is contained in:
parent
2c068a7978
commit
ebce7c0099
5 changed files with 161 additions and 111 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue