|
@@ 399-402 (lines=4) @@
|
| 396 |
|
$isWildcard = $rule->extra == '*'; |
| 397 |
|
break 2; |
| 398 |
|
case 'deny': |
| 399 |
|
default: |
| 400 |
|
self::$log[] = $key.' match with ACL rule id '.$rule->getPK().' denies access for '.$module.'/'.$action.$extra.' (public)'; |
| 401 |
|
$access = false; |
| 402 |
|
break; |
| 403 |
|
} |
| 404 |
|
} else { |
| 405 |
|
if ($rule->type !== 'public') { |
|
@@ 408-411 (lines=4) @@
|
| 405 |
|
if ($rule->type !== 'public') { |
| 406 |
|
if (self::getUser()) { |
| 407 |
|
switch ($rule->permission) { |
| 408 |
|
case 'deny': |
| 409 |
|
self::$log[] = $key.' match with ACL rule id '.$rule->getPK().' denies access for '.$module.'/'.$action.$extra; |
| 410 |
|
$access = false; |
| 411 |
|
break; |
| 412 |
|
case 'own': |
| 413 |
|
if (call_user_func_array($ownerCallback, [$uid, $usergroup])) { |
| 414 |
|
self::$log[] = $key.' match with ACL rule id '.$rule->getPK().' allows access for '.$module.'/'.$action.$extra.' (owner)'; |