models/Assignment.php 1 location
|
@@ 90-95 (lines=6) @@
|
87 |
|
{ |
88 |
|
$manager = Configs::authManager(); |
89 |
|
$available = []; |
90 |
|
foreach ($manager->getRoles() as $item) { |
91 |
|
$avaliable[$item->name] = [ |
92 |
|
'type' => 'role', |
93 |
|
'desc' => $item->description, |
94 |
|
]; |
95 |
|
} |
96 |
|
|
97 |
|
foreach ($manager->getPermissions() as $item) { |
98 |
|
if ($item->name[0] != '/') { |
models/AuthItem.php 1 location
|
@@ 251-256 (lines=6) @@
|
248 |
|
$manager = Configs::authManager(); |
249 |
|
$available = []; |
250 |
|
if ($this->type == Item::TYPE_ROLE) { |
251 |
|
foreach ($manager->getRoles() as $item) { |
252 |
|
$avaliable[$item->name] = [ |
253 |
|
'type' => 'role', |
254 |
|
'desc' => $item->description, |
255 |
|
]; |
256 |
|
} |
257 |
|
} |
258 |
|
foreach ($manager->getPermissions() as $item) { |
259 |
|
$avaliable[$item->name] = [ |