mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
app: Add locked flag
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
734e4fea9a
commit
ec75790c00
@ -23,12 +23,19 @@ class App:
|
|||||||
the user. Enable/disable button for this app will not be shown. Default
|
the user. Enable/disable button for this app will not be shown. Default
|
||||||
value is True, so the app can be disabled.
|
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
|
app_id = None
|
||||||
|
|
||||||
can_be_disabled = True
|
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()
|
_all_apps = collections.OrderedDict()
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user