禅道#633问题修复

This commit is contained in:
gaoqr
2025-03-10 15:41:29 +08:00
parent 1fe749b904
commit 0f5c00281c
2 changed files with 9 additions and 1 deletions
@@ -140,7 +140,10 @@ public class OrganSecurityWebFilter extends ApiRequestFilter {
ServiceException serviceException = (ServiceException) ex;
if (Objects.equals(serviceException.getCode(), ErrorCodeConstants.ORGAN_EXPIRE.getCode())
|| Objects.equals(serviceException.getCode(), ErrorCodeConstants.ORGAN_DISABLE.getCode())
|| Objects.equals(serviceException.getCode(), ErrorCodeConstants.ORGAN_NOT_EXISTS.getCode())) {
|| Objects.equals(serviceException.getCode(), ErrorCodeConstants.ORGAN_NOT_EXISTS.getCode())
|| Objects.equals(serviceException.getCode(), ErrorCodeConstants.DEPT_DISABLE.getCode())
|| Objects.equals(serviceException.getCode(), ErrorCodeConstants.DEPT_NOT_FOUND.getCode())
|| Objects.equals(serviceException.getCode(), ErrorCodeConstants.DEPT_PARENT_NOT_EXITS.getCode())) {
result.setCode(GlobalErrorCodeConstants.UNAUTHORIZED.getCode());
}
}