edit
-
+
{
+ if (
+ hasPermission(aclResources.ResourceLabels, aclActions.ActionSearch, aclActions.ActionRead)
+ ) {
+ next();
+ } else {
+ next({ name: "home" });
+ }
+ },
},
{
name: "people",
diff --git a/internal/acl/permissions.go b/internal/acl/permissions.go
index b2b13a745..50188eddc 100644
--- a/internal/acl/permissions.go
+++ b/internal/acl/permissions.go
@@ -47,4 +47,8 @@ var Permissions = ACL{
ResourceSettings: Roles{
RoleAdmin: Actions{ActionDefault: true},
},
+ ResourceLabels: Roles{
+ RoleAdmin: Actions{ActionDefault: true},
+ RoleMember: Actions{ActionSearch: true, ActionRead: true},
+ },
}
|