feat: add useradmin role -运营管理员权限,支持管理用户/订单/风控等
This commit is contained in:
@@ -63,7 +63,7 @@ type User struct {
|
||||
}
|
||||
|
||||
func (u *User) IsAdmin() bool {
|
||||
return u.Role == RoleAdmin
|
||||
return u.Role == RoleAdmin || u.Role == RoleUserAdmin
|
||||
}
|
||||
|
||||
func (u *User) IsActive() bool {
|
||||
|
||||
Reference in New Issue
Block a user