mirror of
https://github.com/chillzhuang/blade-tool
synced 2024-11-15 06:59:29 +08:00
⚡ 优化系统默认角色判断
This commit is contained in:
parent
eac1f41d5f
commit
1c8a458f2d
@ -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";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user