mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
cockpit: Don't show home page icon to non-admin users
Tests: - Logout and see that the home page icon is not visible. - Login as non-admin user and see that the home page icon is not visible. - Login as admin user and see that the home page icon is visible. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
parent
a9ee8fb432
commit
9f8f187d42
@ -77,7 +77,8 @@ class CockpitApp(app_module.App):
|
|||||||
short_description=info.short_description,
|
short_description=info.short_description,
|
||||||
icon=info.icon_filename,
|
icon=info.icon_filename,
|
||||||
url='/_cockpit/', clients=info.clients,
|
url='/_cockpit/', clients=info.clients,
|
||||||
login_required=True)
|
login_required=True,
|
||||||
|
allowed_groups=['admin'])
|
||||||
self.add(shortcut)
|
self.add(shortcut)
|
||||||
|
|
||||||
firewall = Firewall('firewall-cockpit', info.name,
|
firewall = Firewall('firewall-cockpit', info.name,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user