Skip to content

Commit

Permalink
Merge pull request #8898 from jaywcarman/fix_tenant_list_view
Browse files Browse the repository at this point in the history
Fix Configuration>Access Control>Tenants list view
  • Loading branch information
agrare committed Sep 5, 2023
2 parents e37dec7 + 6e02960 commit 6bb35eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ops_controller/ops_rbac.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module OpsController::OpsRbac
}.freeze

def role_allows?(**options)
if MiqProductFeature.my_root_tenant_identifier?(options[:feature]) && params.key?(:id)
if MiqProductFeature.my_root_tenant_identifier?(options[:feature]) && params.key?(:id) && params[:id] != 'xx-tn'
if params[:id].to_s.include?('tn')
_, id, _ = TreeBuilder.extract_node_model_and_id(params[:id].to_s)
else
Expand Down

0 comments on commit 6bb35eb

Please sign in to comment.