refactored to MP...debugs starts now
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user