diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/constants/PermissionCodeConstants.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/constants/PermissionCodeConstants.java index 90aeefe3c..d13e713b4 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/constants/PermissionCodeConstants.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/constants/PermissionCodeConstants.java @@ -143,4 +143,9 @@ public interface PermissionCodeConstants { */ String CHANGE_ROLE_BIND_LIMIT = "CHANGE_ROLE_BIND_LIMIT"; + /** + * 密码策略配置权限标识 + */ + String PASSWORD_STRATEGY_CONFIG = "PASSWORD_STRATEGY_CONFIG"; + } diff --git a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/security/controller/SecurityStrategyController.java b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/security/controller/SecurityStrategyController.java index 15014b827..9ccc67432 100644 --- a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/security/controller/SecurityStrategyController.java +++ b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/security/controller/SecurityStrategyController.java @@ -13,6 +13,8 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; +import static cn.stylefeng.roses.kernel.sys.api.constants.PermissionCodeConstants.PASSWORD_STRATEGY_CONFIG; + /** * 安全策略配置 * @@ -20,7 +22,7 @@ import javax.annotation.Resource; * @since 2023/10/4 15:59 */ @RestController -@ApiResource(name = "安全策略配置") +@ApiResource(name = "安全策略配置", requiredPermission = true, requirePermissionCode = PASSWORD_STRATEGY_CONFIG) public class SecurityStrategyController { @Resource