fix: 平台超管权限走角色配置
This commit is contained in:
@@ -70,7 +70,7 @@ func (s *sAdminRole) Verify(ctx context.Context, path, method string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
if isAdminScopeSuper(ctx, user.Id, user.RoleId) {
|
if service.AdminMember().VerifySuperId(ctx, user.Id) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user