mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-04 08:53:42 +00:00
searx: Update to use shortcut component
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
23e4aac400
commit
5fe7f4aaba
@ -163,10 +163,10 @@ def diagnose():
|
||||
def enable_public_access():
|
||||
"""Allow Searx app to be accessed by anyone with access."""
|
||||
actions.superuser_run('searx', ['enable-public-access'])
|
||||
add_shortcut()
|
||||
app.set_shortcut_login_required(False)
|
||||
|
||||
|
||||
def disable_public_access():
|
||||
"""Allow Searx app to be accessed by logged-in users only."""
|
||||
actions.superuser_run('searx', ['disable-public-access'])
|
||||
add_shortcut()
|
||||
app.set_shortcut_login_required(True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user