Skip to content

Commit

Permalink
Added RBAC check in index method to fix routes_spec error
Browse files Browse the repository at this point in the history
- Added `report_data` and `wait_to_task` routes to pending routes list

Pre work for #7401
h-kataria committed Jan 14, 2021

Verified

This commit was signed with the committer’s verified signature.
1 parent 946b244 commit 395691a
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/miq_policy_rsop_controller.rb
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ def self.table_name
end

def index
assert_privileges('policy_simulation')
flash_to_session
@breadcrumbs = []
session[:changed] = false
3 changes: 3 additions & 0 deletions spec/config/routes.pending.yml
Original file line number Diff line number Diff line change
@@ -844,6 +844,9 @@ MiqPolicyController:
- x_show
MiqPolicyExportController:
- report_data
MiqPolicyRsopController:
- report_data
- wait_for_task
MiqPolicySetController:
- form_field_changed
- index

0 comments on commit 395691a

Please sign in to comment.