From c7c82e747be6b487f204608953b3d187cdb6648c Mon Sep 17 00:00:00 2001 From: smallchill Date: Tue, 24 Aug 2021 14:07:42 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=99=AE=E9=80=9A?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E8=AF=B7=E6=B1=82=E5=88=97=E8=A1=A8=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E6=9D=83=E9=99=90=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/springblade/system/controller/DeptController.java | 2 ++ .../java/org/springblade/system/controller/RoleController.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/controller/DeptController.java b/blade-service/blade-system/src/main/java/org/springblade/system/controller/DeptController.java index 779dca47..37a2781a 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/controller/DeptController.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/controller/DeptController.java @@ -26,6 +26,7 @@ import org.springblade.core.cache.utils.CacheUtil; import org.springblade.core.mp.support.Condition; import org.springblade.core.secure.BladeUser; import org.springblade.core.secure.annotation.PreAuth; +import org.springblade.core.secure.constant.AuthConstant; import org.springblade.core.tenant.annotation.NonDS; import org.springblade.core.tool.api.R; import org.springblade.core.tool.constant.BladeConstant; @@ -159,6 +160,7 @@ public class DeptController extends BladeController { /** * 下拉数据源 */ + @PreAuth(AuthConstant.PERMIT_ALL) @GetMapping("/select") @ApiOperationSupport(order = 8) @ApiOperation(value = "下拉数据源", notes = "传入id集合") diff --git a/blade-service/blade-system/src/main/java/org/springblade/system/controller/RoleController.java b/blade-service/blade-system/src/main/java/org/springblade/system/controller/RoleController.java index 63134a25..0fbf4056 100644 --- a/blade-service/blade-system/src/main/java/org/springblade/system/controller/RoleController.java +++ b/blade-service/blade-system/src/main/java/org/springblade/system/controller/RoleController.java @@ -26,6 +26,7 @@ import org.springblade.core.cache.utils.CacheUtil; import org.springblade.core.mp.support.Condition; import org.springblade.core.secure.BladeUser; import org.springblade.core.secure.annotation.PreAuth; +import org.springblade.core.secure.constant.AuthConstant; import org.springblade.core.tenant.annotation.NonDS; import org.springblade.core.tool.api.R; import org.springblade.core.tool.constant.BladeConstant; @@ -152,6 +153,7 @@ public class RoleController extends BladeController { /** * 下拉数据源 */ + @PreAuth(AuthConstant.PERMIT_ALL) @GetMapping("/select") @ApiOperationSupport(order = 8) @ApiOperation(value = "下拉数据源", notes = "传入id集合")