luci2: make login view readonly if acls are missing
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 30 Sep 2013 16:51:43 +0000 (16:51 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 30 Sep 2013 16:51:43 +0000 (16:51 +0000)
luci2/htdocs/luci2/view/system.users.js

index 69fdaa2..ed53ab5 100644 (file)
@@ -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', {