mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +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():
|
def enable_public_access():
|
||||||
"""Allow Searx app to be accessed by anyone with access."""
|
"""Allow Searx app to be accessed by anyone with access."""
|
||||||
actions.superuser_run('searx', ['enable-public-access'])
|
actions.superuser_run('searx', ['enable-public-access'])
|
||||||
add_shortcut()
|
app.set_shortcut_login_required(False)
|
||||||
|
|
||||||
|
|
||||||
def disable_public_access():
|
def disable_public_access():
|
||||||
"""Allow Searx app to be accessed by logged-in users only."""
|
"""Allow Searx app to be accessed by logged-in users only."""
|
||||||
actions.superuser_run('searx', ['disable-public-access'])
|
actions.superuser_run('searx', ['disable-public-access'])
|
||||||
add_shortcut()
|
app.set_shortcut_login_required(True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user