Refacto on all CNXID replacements in myaccess & consequences

This commit is contained in:
STEINNI
2026-06-26 18:42:59 +00:00
parent 155692f71d
commit a868caf8c9
4 changed files with 37 additions and 22 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ export const methods = {
return
}
if(!this.accessRights.canSet(this.userId, this.roles, payload.key)){
if(!this.accessRights.canSet(this.userId, this.roles, payload.key, this.uuid)){
this.sendErr(action, 'Unauthorized key !', reqid);
return
}
@@ -92,7 +92,7 @@ export const methods = {
return;
};
if(!this.accessRights.canGet(this.userId, this.roles, payload.key)) {
if(!this.accessRights.canGet(this.userId, this.roles, payload.key, this.uuid)) {
console.log('Unauth GET key:',this.userId, this.roles, payload.key)
this.sendErr(action, 'Unauthorized key !', reqid);
return