Merge branch 'master' of https://gitee.com/meystack/swiftadmin
This commit is contained in:
@@ -305,6 +305,12 @@ class Auth
|
|||||||
'field' => $this->authFields
|
'field' => $this->authFields
|
||||||
], true);
|
], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($list)) {
|
||||||
|
$list = Event::emit('cmscategoryPermissions', [
|
||||||
|
'field' => $this->authFields
|
||||||
|
], 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