lyhzzz před 2 roky
rodič
revize
778a264f97

+ 1 - 1
src/main/java/com/fdkankan/fusion/controller/LoginController.java

@@ -62,7 +62,7 @@ public class LoginController extends BaseController{
             throw new BusinessException(ResultCode.USER_NOT_LOGIN_PERM);
         }
         //超管除外
-        if(!tmUser.getDeptId().equals("0")){
+        if(!tmUser.getDeptId().equals("0") && !tmUser.getDeptId().equals(request.getDeptId())){
             List<TmDepartment> deptList = tmDepartmentService.getSonByDeptId(request.getDeptId());
             if(deptList == null || deptList.size() <=0){
                 throw new BusinessException(ResultCode.DEPT_NOT_EXITS);