mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 10:57:13 +08:00 
			
		
		
		
	feat(system): 新增普通用户角色并调整第三方登录用户默认角色
- 原来第三方登录用户注册后默认为超管用户,是出于方便演示环境用户查看,本次有 Gitee@hagyao520 大佬反馈不安全,干脆调整此逻辑,感谢大佬提供的普通用户角色 PR
This commit is contained in:
		| @@ -54,11 +54,21 @@ public class SysConstants { | ||||
|      */ | ||||
|     public static final String SUPER_ROLE_CODE = "admin"; | ||||
|  | ||||
|     /** | ||||
|      * 普通用户角色编码 | ||||
|      */ | ||||
|     public static final String GENERAL_ROLE_CODE = "general"; | ||||
|  | ||||
|     /** | ||||
|      * 超管角色 ID | ||||
|      */ | ||||
|     public static final Long SUPER_ROLE_ID = 1L; | ||||
|  | ||||
|     /** | ||||
|      * 普通用户角色 ID | ||||
|      */ | ||||
|     public static final Long GENERAL_ROLE_ID = 2L; | ||||
|  | ||||
|     /** | ||||
|      * 全部权限标识 | ||||
|      */ | ||||
| @@ -74,11 +84,6 @@ public class SysConstants { | ||||
|      */ | ||||
|     public static final String LOGOUT_URI = "/auth/logout"; | ||||
|  | ||||
|     /** | ||||
|      * 描述类字段后缀 | ||||
|      */ | ||||
|     public static final String DESCRIPTION_FIELD_SUFFIX = "String"; | ||||
|  | ||||
|     private SysConstants() { | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user