!28 update app/admin/library/Auth.php.
Merge pull request !28 from 胡图图/N/A
This commit is contained in:
@@ -293,10 +293,6 @@ class Auth
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (!Event::hasListener('cmscategoryPermissions')) {
|
|
||||||
throw new \Exception('请安装CMS插件');
|
|
||||||
} else {
|
|
||||||
|
|
||||||
if (!$this->superAdmin()) {
|
if (!$this->superAdmin()) {
|
||||||
if (!empty($auth_nodes[$class])) {
|
if (!empty($auth_nodes[$class])) {
|
||||||
$list = Event::emit('cmscategoryPermissions', [
|
$list = Event::emit('cmscategoryPermissions', [
|
||||||
@@ -312,7 +308,6 @@ class Auth
|
|||||||
], true);
|
], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return $tree ? ($list ? json_encode(list_to_tree($list)) : json_encode([])) : $list;
|
return $tree ? ($list ? json_encode(list_to_tree($list)) : json_encode([])) : $list;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user