Commit 40d5eb4a0765610bd04966b905410fcd667f5bab

Authored by YunaiV
2 parents cb3b172e 2177aea2

Merge branch 'master' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into feature/multi-module

 Conflicts:
	yudao-core-service/pom.xml
yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/handler/AccessDeniedHandlerImpl.java
... ... @@ -16,6 +16,7 @@ import javax.servlet.http.HttpServletRequest;
16 16 import javax.servlet.http.HttpServletResponse;
17 17 import java.io.IOException;
18 18  
  19 +import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.FORBIDDEN;
19 20 import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.UNAUTHORIZED;
20 21  
21 22 /**
... ... @@ -36,7 +37,7 @@ public class AccessDeniedHandlerImpl implements AccessDeniedHandler {
36 37 log.warn("[commence][访问 URL({}) 时,用户({}) 权限不够]", request.getRequestURI(),
37 38 SecurityFrameworkUtils.getLoginUserId(), e);
38 39 // 返回 403
39   - ServletUtils.writeJSON(response, CommonResult.error(UNAUTHORIZED));
  40 + ServletUtils.writeJSON(response, CommonResult.error(FORBIDDEN));
40 41 }
41 42  
42 43 }
... ...