samba: Only show shortcut to users in freedombox-share group

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2019-12-01 11:17:00 -05:00
parent 1a76e7bef0
commit da39f593f1
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -77,7 +77,7 @@ class SambaApp(app_module.App):
'shortcut-samba', name, short_description=short_description,
icon='samba', description=description,
configure_url=reverse_lazy('samba:index'), clients=clients,
login_required=True)
login_required=True, allowed_groups=[group[0]])
self.add(shortcut)
firewall = Firewall('firewall-samba', name, ports=['samba'])