roles into wsscnx from sess

This commit is contained in:
STEINNI
2025-09-21 20:09:42 +00:00
parent e7dcb7290e
commit 5d223c776c
5 changed files with 26 additions and 51 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ export const methods = {
if( (!this.accessRights.canPublish(this.userId, this.roles, payload.chan)) &&
(! this.rediscnx.redPillsUuids.includes(this.uuid)) ) {
this.sendErr(action, 'Unauthorized chan !', reqid);
if(this.debug) console.log('PUB: Unauthorized chan', payload.chan)
if(this.debug) console.log('PUB: Unauthorized chan', payload.chan, this.userId, this.roles)
return
}
+1
View File
@@ -86,6 +86,7 @@ export const methods = {
};
if(!this.accessRights.canGet(this.userId, this.roles, payload.key)) {
console.log('Unauth GET key:',this.userId, this.roles, payload.key)
this.sendErr(action, 'Unauthorized key !', reqid);
return
}