|
...
|
...
|
@@ -33,6 +33,7 @@ class LoginAuthMiddleware |
|
|
|
return response(['code'=> Code::USER_LOGIN_ERROE,'msg'=>'当前用户被禁用']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($manage['gid'] != 0){
|
|
|
|
$groupInfo = $this->getGroup($manage);
|
|
|
|
if($groupInfo['status'] != 1){
|
|
|
|
return response(['code'=> Code::USER_LOGIN_ERROE,'msg'=>'当前用户角色被禁用']);
|
|
...
|
...
|
@@ -47,6 +48,7 @@ class LoginAuthMiddleware |
|
|
|
return response(['code'=>Code::USER_PERMISSION_ERROE,'msg'=>'当前用户没有权限']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $next($request);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|