mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
minidlna: Only show shortcut to users in group
Add docstring. Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
ec7a74bf20
commit
11447c5788
@ -86,6 +86,7 @@ class MiniDLNAApp(app_module.App):
|
|||||||
icon=icon_filename,
|
icon=icon_filename,
|
||||||
url='/_minidlna/',
|
url='/_minidlna/',
|
||||||
login_required=True,
|
login_required=True,
|
||||||
|
allowed_groups=[group[0]],
|
||||||
)
|
)
|
||||||
daemon = Daemon('daemon-minidlna', managed_services[0])
|
daemon = Daemon('daemon-minidlna', managed_services[0])
|
||||||
|
|
||||||
@ -97,6 +98,7 @@ class MiniDLNAApp(app_module.App):
|
|||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
|
"""Initialize the module."""
|
||||||
global app
|
global app
|
||||||
app = MiniDLNAApp()
|
app = MiniDLNAApp()
|
||||||
register_group(group)
|
register_group(group)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user