Skip to content

Commit fb2bbbe

Browse files
jeffbonsonFryguy
authored andcommitted
Merge pull request #9197 from GilbertCherrie/fix_guest_devices_summary_page
Fix guest devices summary page (cherry picked from commit 2d008c5)
1 parent cf3f4c0 commit fb2bbbe

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

app/controllers/guest_device_controller.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class GuestDeviceController < ApplicationController
33
include Mixins::GenericShowMixin
44
include Mixins::MoreShowActions
55
include Mixins::GenericSessionMixin
6+
include Mixins::BreadcrumbsMixin
67

78
before_action :check_privileges
89
before_action :get_session_data
@@ -19,6 +20,12 @@ def model
1920
self.class.model
2021
end
2122

23+
def download_summary_pdf
24+
assert_privileges('embedded_automation_manager_credentials_view')
25+
26+
super
27+
end
28+
2229
def self.table_name
2330
@table_name ||= "guest_device"
2431
end
@@ -34,4 +41,12 @@ def textual_group_list
3441
]
3542
end
3643
helper_method(:textual_group_list)
44+
45+
def breadcrumbs_options
46+
{
47+
:breadcrumbs => [
48+
{:title => _("Guest Devices"), :url => controller_url},
49+
],
50+
}
51+
end
3752
end

config/routes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,7 @@
13081308
show_list
13091309
show
13101310
quick_search
1311+
download_summary_pdf
13111312
],
13121313

13131314
:post => %w[

0 commit comments

Comments
 (0)