mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]权限节点刷新机制
This commit is contained in:
parent
e4a488ac16
commit
fa522c8e83
@ -31,6 +31,7 @@ class Node {
|
||||
* @return bool
|
||||
*/
|
||||
public static function applyAuthNode() {
|
||||
cache('need_access_node', null);
|
||||
if (($authorize = session('user.authorize'))) {
|
||||
$nodes = (array) Db::name('SystemAuthNode')->where('auth', 'in', explode(',', $authorize))->column('node');
|
||||
return session('user.nodes', $nodes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user