From 5fe7f4aabaf9595a45d765f0e2d9116ae0496d7e Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 9 Jun 2019 10:36:46 -0400 Subject: [PATCH] searx: Update to use shortcut component Signed-off-by: James Valleroy --- plinth/modules/searx/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/searx/__init__.py b/plinth/modules/searx/__init__.py index 95d8704e7..e3e5e9b97 100644 --- a/plinth/modules/searx/__init__.py +++ b/plinth/modules/searx/__init__.py @@ -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)