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
-1
View File
@@ -13,7 +13,6 @@ module.exports = class RedisConnexion {
this.cfgh = options.cfgh
this.midasSubscriptions = []
this.accessRights = new AccesRights(this.config, options.debug)
this.AWScodeCommitRole = 'arn:aws:iam::959160311435:role/EIC-CodeCommitReader'
// Plugins related
this.plugins = {}
-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) {
-5
View File
@@ -33,11 +33,6 @@ export class configHelper {
this.config = curConfig
}
async refreshAccessRightsDynamo(){
let ar = await this.dynamoGet('accessRights')
this.config.accessRights = ar
}
async refreshAccessRightsFile(){
let tmp
try { tmp = import(`${this.localfile}?update=${Date.now()}`, { assert: { type: 'json' } }) }