1
0
Fork 0
forked from Simnation/Main
Main/resources/[jobs]/[mdt]/myEmergency/html/js/classes/rights.js
2025-08-14 13:21:51 +02:00

20 lines
No EOL
346 B
JavaScript

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;
}
}