From ec75790c00e104c313fd9f02f7e8f943853eb72a Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 30 Dec 2020 16:02:54 -0800 Subject: [PATCH] app: Add locked flag Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- plinth/app.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plinth/app.py b/plinth/app.py index f367a19d9..bb519d7f8 100644 --- a/plinth/app.py +++ b/plinth/app.py @@ -23,12 +23,19 @@ class App: the user. Enable/disable button for this app will not be shown. Default value is True, so the app can be disabled. + 'locked' is a boolean indicating whether the user can perform operations on + the app. This flag is currently set during backup and restore operations + but UI changes are currently not implemented. + """ app_id = None can_be_disabled = True + locked = False # Whether user interaction with the app is allowed. + # XXX: Lockdown the application UI by implementing a middleware + _all_apps = collections.OrderedDict() def __init__(self):