Rev 8185 | Rev 15407 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8185 | Rev 12010 | ||
---|---|---|---|
Line 184... | Line 184... | ||
184 | if(class_dir[0]==0) return; |
184 | if(class_dir[0]==0) return; |
185 | accessfile(cbuf,"r","%s/access.conf",class_dir); |
185 | accessfile(cbuf,"r","%s/access.conf",class_dir); |
186 | } |
186 | } |
187 | else accessfile(cbuf,"r",ACCESS_CONF); |
187 | else accessfile(cbuf,"r",ACCESS_CONF); |
188 | if(cbuf[0]==0) return; |
188 | if(cbuf[0]==0) return; |
- | 189 | /* access limited */ |
|
189 | if(cmd_type==cmd_hint) thisaccess|=ac_hint; |
190 | if(cmd_type==cmd_hint) thisaccess|=ac_hint; |
190 | p1=getvar("wims_accessright"); if(p1!=NULL && *p1!=0) { |
191 | p1=getvar("wims_accessright"); if(p1!=NULL && *p1!=0) { |
191 | p=getvar(ro_name[ro_module]); |
192 | p=getvar(ro_name[ro_module]); |
192 | for(p1=find_word_start(p1);*p1; p1=find_word_start(p2)) { |
193 | for(p1=find_word_start(p1);*p1; p1=find_word_start(p2)) { |
193 | p2=find_word_end(p1); |
194 | p2=find_word_end(p1); |
Line 239... | Line 240... | ||
239 | } |
240 | } |
240 | if(linepol==0 || (linepol&lineaccess)!=linepol) continue; |
241 | if(linepol==0 || (linepol&lineaccess)!=linepol) continue; |
241 | if(refuse) user_error("no_access"); |
242 | if(refuse) user_error("no_access"); |
242 | else return; |
243 | else return; |
243 | } |
244 | } |
- | 245 | /* end of limited access */ |
|
244 | } |
246 | } |
245 | 247 |