@@ -64,13 +64,13 @@ |
||
64 | 64 | $items = $authManager->getRoles(); |
65 | 65 | } else { |
66 | 66 | $items = array_filter($authManager->getPermissions(), function($item) use ($advanced){ |
67 | - $isPermission = $this->type == Item::TYPE_PERMISSION; |
|
68 | - if ($advanced) { |
|
67 | + $isPermission = $this->type == Item::TYPE_PERMISSION; |
|
68 | + if ($advanced) { |
|
69 | 69 | return $isPermission xor (strncmp($item->name, '/', 1) === 0 or strncmp($item->name, '@', 1) === 0); |
70 | - } |
|
71 | - else { |
|
70 | + } |
|
71 | + else { |
|
72 | 72 | return $isPermission xor strncmp($item->name, '/', 1) === 0; |
73 | - } |
|
73 | + } |
|
74 | 74 | }); |
75 | 75 | } |
76 | 76 | $this->load($params); |
@@ -67,8 +67,7 @@ |
||
67 | 67 | $isPermission = $this->type == Item::TYPE_PERMISSION; |
68 | 68 | if ($advanced) { |
69 | 69 | return $isPermission xor (strncmp($item->name, '/', 1) === 0 or strncmp($item->name, '@', 1) === 0); |
70 | - } |
|
71 | - else { |
|
70 | + } else { |
|
72 | 71 | return $isPermission xor strncmp($item->name, '/', 1) === 0; |
73 | 72 | } |
74 | 73 | }); |