index fd6fac1548084fe369ed5db1a36adccd8727d6ce..1327a6350c4517e37dba3e75388edbbabebc563c 100644 (file)
function check_access($aclname)
{
- $acl = "";
$deps = $this->ui->get_module_departments($aclname);
$acls_to_check = array();
if(preg_match("/\//",$aclname)){
foreach($deps as $dep){
foreach($acls_to_check as $acl_to_check){
- $acl.=$this->ui->get_permissions($dep,$acl_to_check);
+ if($this->ui->get_permissions($dep,$acl_to_check) != ""){
+ return(TRUE);
+ }
}
}
}else{
foreach($deps as $dep){
foreach($acls_to_check as $acl_to_check){
- $acl.=$this->ui->get_category_permissions($dep,$acl_to_check);
+ if($this->ui->get_category_permissions($dep,$acl_to_check) != ""){
+ return(TRUE);
+ }
}
}
}
- if($acl != ""){
- return (TRUE);
- }
return (FALSE);
}