Skip to content

Commit

Permalink
Cloud networks are being listed not only in the CloudNetworkController.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Sep 26, 2017
1 parent f6f16ac commit e38cbd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ def init_report_data(controller_name)
}
end

def rbac_params
{:match_via_descendants => ManageIQ::Providers::NetworkManager}
end

# Private method for processing params.
# params can contain these options:
# @param params parameters object.
Expand Down
4 changes: 0 additions & 4 deletions app/controllers/cloud_network_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ class CloudNetworkController < ApplicationController
include Mixins::GenericShowMixin
include Mixins::GenericFormMixin

def rbac_params
{:match_via_descendants => ManageIQ::Providers::NetworkManager}
end

def self.display_methods
%w(instances cloud_networks network_routers cloud_subnets)
end
Expand Down

0 comments on commit e38cbd8

Please sign in to comment.