fix: 平台超管拥有全部商户数据范围

This commit is contained in:
richjohnrambo
2026-09-20 20:05:08 +08:00
parent 6afeb65b91
commit e2ca0607af
2 changed files with 4 additions and 0 deletions
@@ -71,6 +71,9 @@ func isImPlatformAdmin(ctx context.Context, operatorId int64) bool {
if service.AdminMember().VerifySuperId(ctx, operatorId) {
return true
}
if contexts.GetRoleKey(ctx) == consts.ImPlatformRoleKey {
return true
}
return contexts.IsCompanyDept(ctx) && contexts.GetTenantId(ctx) <= 0
}