From 4c325056a85dd9df4616c71b76dd0de8e061cdc7 Mon Sep 17 00:00:00 2001 From: STEINNI Date: Mon, 6 Oct 2025 17:38:43 +0000 Subject: [PATCH] refactored to MP...debugs starts now --- Rabbit-injector/redisConnexion.js | 1 - accesRights.js | 3 --- configHelper.js | 5 ----- 3 files changed, 9 deletions(-) diff --git a/Rabbit-injector/redisConnexion.js b/Rabbit-injector/redisConnexion.js index 1c9563e..da02e11 100644 --- a/Rabbit-injector/redisConnexion.js +++ b/Rabbit-injector/redisConnexion.js @@ -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 = {} diff --git a/accesRights.js b/accesRights.js index 236cb5c..ea0df40 100644 --- a/accesRights.js +++ b/accesRights.js @@ -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) { diff --git a/configHelper.js b/configHelper.js index 4575f06..162150f 100644 --- a/configHelper.js +++ b/configHelper.js @@ -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' } }) }