Skip to content

Commit ce65a44

Browse files
committed
Update AclControllerParser.php
1 parent 4a4611a commit ce65a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ubiquity/security/acl/cache/AclControllerParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected function parseMethod(\ReflectionMethod $method, bool &$hasPermission,
9494
AclManager::addResource($annotResource->name, $controller . '.' . $action);
9595
}
9696
if ($annotPermission) {
97-
if(\is_int($annotPermission->name) && !isset($annotPermission->level)){
97+
if(\is_int($annotPermission->name) && $annotPermission->level===0){
9898
$annotPermission->level=$annotPermission->name;
9999
$annotPermission->name=null;
100100
}

0 commit comments

Comments
 (0)