Skip to content

Commit

Permalink
Merge pull request ManageIQ#19779 from mansam/make-external-networks-…
Browse files Browse the repository at this point in the history
…available-to-tenants

Make External-facing networks available to all tenants
  • Loading branch information
agrare committed Jan 31, 2020
2 parents 88d03df + 1eab9ac commit 3fb04b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/cloud_network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def self.class_by_ems(ext_management_system, _external = false)
end

def self.tenant_id_clause_format(tenant_ids)
["((tenants.id IN (?) OR cloud_networks.shared IS TRUE) AND ext_management_systems.tenant_mapping_enabled IS TRUE) OR ext_management_systems.tenant_mapping_enabled IS FALSE OR ext_management_systems.tenant_mapping_enabled IS NULL", tenant_ids]
["((tenants.id IN (?) OR cloud_networks.shared IS TRUE OR cloud_networks.external_facing IS TRUE) AND ext_management_systems.tenant_mapping_enabled IS TRUE) OR ext_management_systems.tenant_mapping_enabled IS FALSE OR ext_management_systems.tenant_mapping_enabled IS NULL", tenant_ids]
end

private
Expand Down

0 comments on commit 3fb04b0

Please sign in to comment.