上层平台去除部门区分

This commit is contained in:
zhangjunwen 2024-07-10 17:47:24 +08:00
parent 41999d4a15
commit a558086d4d

View File

@ -34,8 +34,6 @@ public class UserDetailsServiceImpl implements UserDetailsService
@Autowired
private SysPermissionService permissionService;
@Value("${user.deptId}")
private Long deptId;
@Override
public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException
@ -56,9 +54,6 @@ public class UserDetailsServiceImpl implements UserDetailsService
log.info("登录用户:{} 已被停用.", username);
throw new ServiceException("对不起,您的账号:" + username + " 已停用");
}
else if (deptId != null && !deptId.equals(user.getDeptId())){
throw new ServiceException("对不起,您的账号:" + username + " 不属于该工控机,无法登录");
}
passwordService.validate(user);