Skip to content

Commit

Permalink
Merge pull request #9197 from GilbertCherrie/fix_guest_devices_summar…
Browse files Browse the repository at this point in the history
…y_page

Fix guest devices summary page
  • Loading branch information
jeffbonson authored May 29, 2024
2 parents ecce835 + 322c5f6 commit 2d008c5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/controllers/guest_device_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class GuestDeviceController < ApplicationController
include Mixins::GenericShowMixin
include Mixins::MoreShowActions
include Mixins::GenericSessionMixin
include Mixins::BreadcrumbsMixin

before_action :check_privileges
before_action :get_session_data
Expand All @@ -19,6 +20,12 @@ def model
self.class.model
end

def download_summary_pdf
assert_privileges('embedded_automation_manager_credentials_view')

super
end

def self.table_name
@table_name ||= "guest_device"
end
Expand All @@ -34,4 +41,12 @@ def textual_group_list
]
end
helper_method(:textual_group_list)

def breadcrumbs_options
{
:breadcrumbs => [
{:title => _("Guest Devices"), :url => controller_url},
],
}
end
end
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,7 @@
show_list
show
quick_search
download_summary_pdf
],

:post => %w[
Expand Down

0 comments on commit 2d008c5

Please sign in to comment.