mirror of
https://github.com/openwrt/luci.git
synced 2026-02-04 12:06:01 +08:00
luci-app-acl: also grand read access to luci-mod-status-index
If a new user is created, 'luci-mod-status-index' should also be selected, as this is the start page after login. If a user is created without this, only a 404 is displayed. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
committed by
Paul Donald
parent
0a3b60d050
commit
20bd9d223f
@@ -98,7 +98,7 @@ var cbiACLSelect = form.Value.extend({
|
||||
]);
|
||||
|
||||
Object.keys(aclList).sort().forEach(function(aclGroupName) {
|
||||
var isRequired = (aclGroupName == 'unauthenticated' || aclGroupName == 'luci-base'),
|
||||
var isRequired = (aclGroupName == 'unauthenticated' || aclGroupName == 'luci-base' || aclGroupName == 'luci-mod-status-index'),
|
||||
isReadable = (readMatches[0].test(aclGroupName) && !readMatches[1].test(aclGroupName)) || null,
|
||||
isWritable = (writeMatches[0].test(aclGroupName) && !writeMatches[1].test(aclGroupName)) || null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user