Skip to content

Commit

Permalink
Merge branch 'fix_service_controllere' into '5.11.z'
Browse files Browse the repository at this point in the history
Fix method show in service controller

See merge request cloudforms/cfme-ui-classic!127

(cherry picked from commit 43e6e74)
(cherry picked from commit f71880c)
  • Loading branch information
simaishi authored and Fryguy committed Jan 5, 2021
1 parent 1ce12f7 commit f78f102
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/controllers/service_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def title

# Service show selected, redirect to proper controller
def show
assert_privileges('service_view')

@record = Service.find(params[:id].to_i)
@lastaction = "show"

Expand Down Expand Up @@ -204,11 +206,6 @@ def reconfigure_form_fields
super
end

def show
assert_privileges('service_view')
super
end

private

def record_class
Expand Down

0 comments on commit f78f102

Please sign in to comment.