@@ -62,7 +62,7 @@ |
||
62 | 62 | if ($this->type == Item::TYPE_ROLE) { |
63 | 63 | $items = $authManager->getRoles(); |
64 | 64 | } else { |
65 | - $items = array_filter($authManager->getPermissions(), function ($item) { |
|
65 | + $items = array_filter($authManager->getPermissions(), function($item) { |
|
66 | 66 | $advanced = Configs::instance()->advanced; |
67 | 67 | return $this->type == Item::TYPE_PERMISSION xor strncmp($item->name, '/', 1) === 0 xor $advanced && strncmp($item->name, '@', 1) === 0; |
68 | 68 | }); |