Commit 2a11f8d2 by 杨树贤

权限问题

parent aff1a7a5
Showing with 2 additions and 2 deletions
...@@ -138,8 +138,8 @@ class Permission ...@@ -138,8 +138,8 @@ class Permission
function perm($userId, $perm = '') function perm($userId, $perm = '')
{ {
$permArr = config('perm.perm'); $permArr = config('perm.perm');
$notAuth = $permArr['notAuth']; $notAuth = $permArr['not_auth'];
$AdminID = $permArr['adminGroup']; $AdminID = $permArr['admin_group'];
if ((!in_array($perm, $notAuth)) && !in_array($userId, $AdminID)) {//过滤不用鉴权的方法与用户 if ((!in_array($perm, $notAuth)) && !in_array($userId, $AdminID)) {//过滤不用鉴权的方法与用户
$permID = $permArr['id']; $permID = $permArr['id'];
$url = $permArr['url'] . '/' . $userId . '/' . $permID . '?perms=' . $perm; $url = $permArr['url'] . '/' . $userId . '/' . $permID . '?perms=' . $perm;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment