Skip to content

Commit c5b6320

Browse files
Doc
1 parent 033d794 commit c5b6320

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,19 @@ Adjust file 'all/pom.xml':
154154
3. Consider refining the ACL settings
155155

156156
The default settings are defined in the [repo init OSGi config](https://github.com/wttech/acm/blob/main/ui.config/src/main/content/jcr_root/apps/acm-config/osgiconfig/config/org.apache.sling.jcr.repoinit.RepositoryInitializer~acmcore.config), which effectively restrict access to the tool and script execution to administrators only—a recommended practice for production environments.
157-
If you require further customization, you can create your own repo init OSGi config to override or extend the default configuration. Ensure to specify higher service ranking to take precedence over the default settings.
157+
If you require further customization, you can create your own repo init OSGi config to override or extend the default configuration. Ensure to specify [higher service ranking](https://sling.apache.org/documentation/bundles/repository-initialization.html#slingrepositoryinitializer) to take precedence over the default settings.
158+
159+
For example:
160+
```ini
161+
service.ranking=I"201"
162+
scripts=["
163+
create group acm-users
164+
set ACL for acm-users
165+
allow jcr:read on /apps/acm
166+
allow jcr:read on /apps/cq/core/content/nav/tools/acm
167+
end
168+
"]
169+
```
158170

159171
## Compatibility
160172

0 commit comments

Comments
 (0)