作者 lyh

gx

@@ -33,6 +33,7 @@ class LoginAuthMiddleware @@ -33,6 +33,7 @@ class LoginAuthMiddleware
33 return response(['code'=> Code::USER_LOGIN_ERROE,'msg'=>'当前用户被禁用']); 33 return response(['code'=> Code::USER_LOGIN_ERROE,'msg'=>'当前用户被禁用']);
34 } 34 }
35 } 35 }
  36 + if($manage['gid'] != 0){
36 $groupInfo = $this->getGroup($manage); 37 $groupInfo = $this->getGroup($manage);
37 if($groupInfo['status'] != 1){ 38 if($groupInfo['status'] != 1){
38 return response(['code'=> Code::USER_LOGIN_ERROE,'msg'=>'当前用户角色被禁用']); 39 return response(['code'=> Code::USER_LOGIN_ERROE,'msg'=>'当前用户角色被禁用']);
@@ -47,6 +48,7 @@ class LoginAuthMiddleware @@ -47,6 +48,7 @@ class LoginAuthMiddleware
47 return response(['code'=>Code::USER_PERMISSION_ERROE,'msg'=>'当前用户没有权限']); 48 return response(['code'=>Code::USER_PERMISSION_ERROE,'msg'=>'当前用户没有权限']);
48 } 49 }
49 } 50 }
  51 + }
50 return $next($request); 52 return $next($request);
51 } 53 }
52 54