From: Jo-Philipp Wich Date: Mon, 30 Sep 2013 16:51:43 +0000 (+0000) Subject: luci2: make login view readonly if acls are missing X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci2%2Fui.git;a=commitdiff_plain;h=6a5147273612c242a785d233467dd2c9e19cf8d8 luci2: make login view readonly if acls are missing --- 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', {