refactored to MP...debugs starts now

This commit is contained in:
STEINNI
2025-10-06 17:38:43 +00:00
parent 350d37e465
commit 4c325056a8
3 changed files with 0 additions and 9 deletions
-3
View File
@@ -44,7 +44,6 @@ export class AccesRights {
}
canPublish(uid, roles, myChan) {
myChan = myChan.startsWith(this.config.redis.basePrefix) ? myChan.substr(this.config.redis.basePrefix.length) : myChan
if(roles.indexOf('*')<0) roles.push('*')
for(let myRole of roles){
for(let rightBlock of this.rights) {
@@ -60,7 +59,6 @@ export class AccesRights {
}
canSet(uid, roles, myKey){
myKey = myKey.startsWith(this.config.redis.storePrefix) ? myKey.substr(this.config.redis.storePrefix.length) : myKey
if(roles.indexOf('*')<0) roles.push('*')
for(let myRole of roles){
for(let rightBlock of this.rights) {
@@ -76,7 +74,6 @@ export class AccesRights {
}
canGet(uid, roles, myKey){
myKey = myKey.startsWith(this.config.redis.storePrefix) ? myKey.substr(this.config.redis.storePrefix.length) : myKey
if(roles.indexOf('*')<0) roles.push('*')
for(let myRole of roles){
for(let rightBlock of this.rights) {