Skip to content
Snippets Groups Projects
Commit 91d0b0fa authored by deuce's avatar deuce
Browse files

Add a can_access property to the xtrn_area.sec objects.

parent 989243fd
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ static char* xtrn_sec_prop_desc[] = {
,"external program section internal code"
,"external program section name"
,"external program section access requirements"
,"user has sufficient access to enter this section <i>(introduced in v3.15)</i>"
,NULL
};
......@@ -285,6 +286,13 @@ JSObject* DLLCALL js_CreateXtrnAreaObject(JSContext* cx, JSObject* parent, scfg_
if(!JS_SetProperty(cx, secobj, "ars", &val))
return(NULL);
if(user==NULL || chk_ar(cfg,cfg->xtrnsec[l]->ar,user))
val=JSVAL_TRUE;
else
val=JSVAL_FALSE;
if(!JS_SetProperty(cx, progobj, "can_access", &val))
return(NULL);
/* prog_list[] */
if((prog_list=JS_NewArrayObject(cx, 0, NULL))==NULL)
return(NULL);
......
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