Skip to content
Snippets Groups Projects
Commit db2cd494 authored by rswindell's avatar rswindell
Browse files

If no user specified (e.g. for offline events), all areas included in arrays.

parent 1a33f365
No related branches found
No related tags found
No related merge requests found
......@@ -217,9 +217,10 @@ JSObject* DLLCALL js_CreateMsgAreaObject(JSContext* cx, JSObject* parent, scfg_t
for(l=0;l<cfg->total_grps;l++) {
#if 0
if(user==NULL && (*cfg->grp[l]->ar)!=AR_NULL)
continue;
#endif
if(user!=NULL && !chk_ar(cfg,cfg->grp[l]->ar,user))
continue;
......@@ -257,10 +258,10 @@ JSObject* DLLCALL js_CreateMsgAreaObject(JSContext* cx, JSObject* parent, scfg_t
for(d=0;d<cfg->total_subs;d++) {
if(cfg->sub[d]->grp!=l)
continue;
#if 0
if(user==NULL && (*cfg->sub[d]->ar)!=AR_NULL)
continue;
#endif
if(user!=NULL && !chk_ar(cfg,cfg->sub[d]->ar,user))
continue;
......
......@@ -193,10 +193,10 @@ JSObject* DLLCALL js_CreateXtrnAreaObject(JSContext* cx, JSObject* parent, scfg_
return(NULL);
for(l=0;l<cfg->total_xtrnsecs;l++) {
#if 0
if(user==NULL && (*cfg->xtrnsec[l]->ar)!=AR_NULL)
continue;
#endif
if(user!=NULL && !chk_ar(cfg,cfg->xtrnsec[l]->ar,user))
continue;
......@@ -234,10 +234,10 @@ JSObject* DLLCALL js_CreateXtrnAreaObject(JSContext* cx, JSObject* parent, scfg_
for(d=0;d<cfg->total_xtrns;d++) {
if(cfg->xtrn[d]->sec!=l)
continue;
#if 0
if(user==NULL && (*cfg->xtrn[d]->ar)!=AR_NULL)
continue;
#endif
if(user!=NULL && !chk_ar(cfg,cfg->xtrn[d]->ar,user))
continue;
......@@ -364,10 +364,10 @@ JSObject* DLLCALL js_CreateXtrnAreaObject(JSContext* cx, JSObject* parent, scfg_
return(NULL);
for(l=0;l<cfg->total_xedits;l++) {
#if 0
if(user==NULL && (*cfg->xedit[l]->ar)!=AR_NULL)
continue;
#endif
if(user!=NULL && !chk_ar(cfg,cfg->xedit[l]->ar,user))
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment