Browse Source

分配权限需要退出重新登录,给明确提示

pull/6339/head
JEECG 5 months ago
parent
commit
3a07d5a983
  1. 2
      jeecg-boot-base-core/src/main/java/org/jeecg/common/exception/JeecgBootExceptionHandler.java
  2. 2
      jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/CommonController.java

2
jeecg-boot-base-core/src/main/java/org/jeecg/common/exception/JeecgBootExceptionHandler.java

@ -104,7 +104,7 @@ public class JeecgBootExceptionHandler {
@ExceptionHandler({UnauthorizedException.class, AuthorizationException.class}) @ExceptionHandler({UnauthorizedException.class, AuthorizationException.class})
public Result<?> handleAuthorizationException(AuthorizationException e){ public Result<?> handleAuthorizationException(AuthorizationException e){
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
return Result.noauth("没有权限,请联系管理员授权"); return Result.noauth("没有权限,请管理员授权后,退出重新登录!");
} }
@ExceptionHandler(Exception.class) @ExceptionHandler(Exception.class)

2
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/CommonController.java

@ -51,7 +51,7 @@ public class CommonController {
*/ */
@GetMapping("/403") @GetMapping("/403")
public Result<?> noauth() { public Result<?> noauth() {
return Result.error("没有权限,请联系管理员授权"); return Result.error("没有权限,请管理员授权后,退出重新登录!");
} }
/** /**

Loading…
Cancel
Save