fix: 平台超管拥有全部商户数据范围
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user