Browse Source

🐛 修复普通角色请求列表没有权限的问题

test
smallchill 3 years ago
parent
commit
c7c82e747b
  1. 2
      blade-service/blade-system/src/main/java/org/springblade/system/controller/DeptController.java
  2. 2
      blade-service/blade-system/src/main/java/org/springblade/system/controller/RoleController.java

2
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.mp.support.Condition;
import org.springblade.core.secure.BladeUser; import org.springblade.core.secure.BladeUser;
import org.springblade.core.secure.annotation.PreAuth; 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.tenant.annotation.NonDS;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springblade.core.tool.constant.BladeConstant; import org.springblade.core.tool.constant.BladeConstant;
@ -159,6 +160,7 @@ public class DeptController extends BladeController {
/** /**
* 下拉数据源 * 下拉数据源
*/ */
@PreAuth(AuthConstant.PERMIT_ALL)
@GetMapping("/select") @GetMapping("/select")
@ApiOperationSupport(order = 8) @ApiOperationSupport(order = 8)
@ApiOperation(value = "下拉数据源", notes = "传入id集合") @ApiOperation(value = "下拉数据源", notes = "传入id集合")

2
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.mp.support.Condition;
import org.springblade.core.secure.BladeUser; import org.springblade.core.secure.BladeUser;
import org.springblade.core.secure.annotation.PreAuth; 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.tenant.annotation.NonDS;
import org.springblade.core.tool.api.R; import org.springblade.core.tool.api.R;
import org.springblade.core.tool.constant.BladeConstant; import org.springblade.core.tool.constant.BladeConstant;
@ -152,6 +153,7 @@ public class RoleController extends BladeController {
/** /**
* 下拉数据源 * 下拉数据源
*/ */
@PreAuth(AuthConstant.PERMIT_ALL)
@GetMapping("/select") @GetMapping("/select")
@ApiOperationSupport(order = 8) @ApiOperationSupport(order = 8)
@ApiOperation(value = "下拉数据源", notes = "传入id集合") @ApiOperation(value = "下拉数据源", notes = "传入id集合")

Loading…
Cancel
Save