优化系统默认角色判断

This commit is contained in:
smallchill 2024-08-25 20:04:28 +08:00
parent eac1f41d5f
commit 1c8a458f2d

View File

@ -22,9 +22,13 @@ package org.springblade.core.tool.constant;
*/ */
public class RoleConstant { 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"; public static final String USER = "user";