fix: 系统管理员角色用system表示避免admin混用
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package admin
|
||||
|
||||
// 管理员常量信息
|
||||
// 系统管理员常量信息
|
||||
|
||||
// 管理员-系统指定角色ID
|
||||
// 系统管理员-系统指定角色ID
|
||||
const ROLE_ID = "1"
|
||||
|
||||
// 管理员-系统指定角色KEY
|
||||
const ROLE_KEY = "admin"
|
||||
// 系统管理员-系统指定角色KEY
|
||||
const ROLE_KEY = "system"
|
||||
|
||||
// 管理员-系统指定权限
|
||||
// 系统管理员-系统指定权限
|
||||
const PERMISSION = "*:*:*"
|
||||
|
||||
@@ -60,7 +60,7 @@ func (s *SysProfileController) Info(c *gin.Context) {
|
||||
}
|
||||
isAdmin := config.IsAdmin(loginUser.UserID)
|
||||
if isAdmin {
|
||||
roleGroup = append(roleGroup, i18n.TKey(language, "role.admin"))
|
||||
roleGroup = append(roleGroup, i18n.TKey(language, "role.system"))
|
||||
}
|
||||
|
||||
// 查询用户所属岗位组
|
||||
|
||||
Reference in New Issue
Block a user