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:
Sunil Mohan Adapa 2020-09-14 22:48:23 -07:00 committed by Joseph Nuthalapati
parent a9ee8fb432
commit 9f8f187d42
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -77,7 +77,8 @@ class CockpitApp(app_module.App):
short_description=info.short_description,
icon=info.icon_filename,
url='/_cockpit/', clients=info.clients,
login_required=True)
login_required=True,
allowed_groups=['admin'])
self.add(shortcut)
firewall = Firewall('firewall-cockpit', info.name,