new chans in config, & allow SUB by template for [UID], and added cnxId & [CUID]
This commit is contained in:
@@ -20,6 +20,7 @@ export const methods = {
|
||||
let subscribed = []
|
||||
for(var chan of payload){
|
||||
if((!chan) || (typeof(chan)!='string')) continue
|
||||
chan = chan.replace(/\[UID\]/g, this.userId)
|
||||
if(!this.accessRights.canSubscribe(this.userId, this.roles, chan)) {
|
||||
if(this.debug) console.log('SUB: No rights to this chan!', this.userId, this.roles, chan)
|
||||
continue
|
||||
@@ -72,6 +73,7 @@ export const methods = {
|
||||
let unSubscribed = []
|
||||
for(var chan of payload){
|
||||
if((!chan) || (typeof(chan)!='string')) continue
|
||||
chan = chan.replace(/\[UID\]/g, this.userId)
|
||||
if(this.accessRights.isMandatory(this.userId, this.roles, chan)) continue
|
||||
|
||||
let couldUnsubscribe = false
|
||||
|
||||
Reference in New Issue
Block a user