Refacto on all CNXID replacements in myaccess & consequences
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user