|
@@ 361-363 (lines=3) @@
|
| 358 |
|
} |
| 359 |
|
|
| 360 |
|
// first we check whether the use has access to the module. |
| 361 |
|
if (empty($this->permissions['intranet']['module'][$module_id]) or $this->permissions['intranet']['module'][$module_id] !== true) { |
| 362 |
|
return false; |
| 363 |
|
} |
| 364 |
|
|
| 365 |
|
// then we check whether there is access to the sub access |
| 366 |
|
if (!empty($this->permissions['user']['module']['subaccess'][$sub_access_id]) and $this->permissions['user']['module']['subaccess'][$sub_access_id] === true) { |
|
@@ 296-298 (lines=3) @@
|
| 293 |
|
if (!empty($this->permissions) and is_array($this->permissions)) { |
| 294 |
|
if (empty($this->permissions['intranet']['module'][$module_id]) or $this->permissions['intranet']['module'][$module_id] !== true) { |
| 295 |
|
return false; |
| 296 |
|
} elseif (empty($this->permissions['user']['module'][$module_id]) or $this->permissions['user']['module'][$module_id] !== true) { |
| 297 |
|
return false; |
| 298 |
|
} else { |
| 299 |
|
return true; |
| 300 |
|
} |
| 301 |
|
} |