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:
Florian Eckert
2024-12-03 15:19:25 +01:00
committed by Paul Donald
parent 0a3b60d050
commit 20bd9d223f

View File

@@ -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;