From 6a5147273612c242a785d233467dd2c9e19cf8d8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 30 Sep 2013 16:51:43 +0000 Subject: [PATCH] luci2: make login view readonly if acls are missing --- luci2/htdocs/luci2/view/system.users.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luci2/htdocs/luci2/view/system.users.js b/luci2/htdocs/luci2/view/system.users.js index 69fdaa2..ed53ab5 100644 --- a/luci2/htdocs/luci2/view/system.users.js +++ b/luci2/htdocs/luci2/view/system.users.js @@ -223,7 +223,8 @@ L.ui.view.extend({ var m = new L.cbi.Map('rpcd', { caption: L.tr('Guest Logins'), description: L.tr('Manage user accounts and permissions for accessing the LuCI ui.'), - collabsible: true + collabsible: true, + readonly: !self.options.acls.users }); var s = m.section(L.cbi.TypedSection, 'login', { -- 2.11.0