mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修复权限禁用后仍然可以读取节点
This commit is contained in:
parent
7e4d270fd6
commit
342d19366a
@ -33,7 +33,10 @@ class Node {
|
|||||||
public static function applyAuthNode() {
|
public static function applyAuthNode() {
|
||||||
cache('need_access_node', null);
|
cache('need_access_node', null);
|
||||||
if (($authorize = session('user.authorize'))) {
|
if (($authorize = session('user.authorize'))) {
|
||||||
$authorizeids = Db::name('SystemAuth')->where('status', '1')->where('id', 'in', explode(',', $authorize))->column('id');
|
$authorizeids = Db::name('SystemAuth')
|
||||||
|
->where('id', 'in', explode(',', $authorize))
|
||||||
|
->where('status', '1')
|
||||||
|
->column('id');
|
||||||
if (empty($authorizeids)) {
|
if (empty($authorizeids)) {
|
||||||
return session('user.nodes', []);
|
return session('user.nodes', []);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user