From 1c8a458f2dac9e6eb29f04f1720be1e332398431 Mon Sep 17 00:00:00 2001 From: smallchill Date: Sun, 25 Aug 2024 20:04:28 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E4=BC=98=E5=8C=96=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=A7=92=E8=89=B2=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/springblade/core/tool/constant/RoleConstant.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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";