diff --git a/blade-core-tool/src/main/java/org/springblade/core/tool/constant/RoleConstant.java b/blade-core-tool/src/main/java/org/springblade/core/tool/constant/RoleConstant.java index b25d197..7e2026d 100644 --- a/blade-core-tool/src/main/java/org/springblade/core/tool/constant/RoleConstant.java +++ b/blade-core-tool/src/main/java/org/springblade/core/tool/constant/RoleConstant.java @@ -22,9 +22,13 @@ package org.springblade.core.tool.constant; */ public class RoleConstant { - public static final String ADMIN = "administrator"; + public static final String ADMINISTRATOR = "administrator"; - public static final String HAS_ROLE_ADMIN = "hasRole('" + ADMIN + "')"; + public static final String HAS_ROLE_ADMINISTRATOR = "hasRole('" + ADMINISTRATOR + "')"; + + public static final String ADMIN = "admin"; + + public static final String HAS_ROLE_ADMIN = "hasAnyRole('" + ADMINISTRATOR + "', '" + ADMIN + "')"; public static final String USER = "user";