1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-14 13:21:51 +02:00
parent 48a36209b5
commit 884f3df7cf
262 changed files with 223207 additions and 2 deletions

View file

@ -0,0 +1,20 @@
class Rights{
constructor(rights){
this.fullright = "*"
this.rights = rights;
}
has(right_key){
let retval = false;
if(this.rights[right_key] !== undefined){
retval = this.rights[right_key];
}
if(!retval && this.rights["*"] !== undefined){
retval = this.rights["*"]
}
return retval;
}
}