Skip to content

Commit 4bc17c3

Browse files
Doc
1 parent ce3120f commit 4bc17c3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -501,19 +501,15 @@ boolean canRun() {
501501
void doRun() {
502502
log.info "ACL setup started"
503503
504-
def acmeService = acl.createUser { id = "acme.service"; systemUser(); skipIfExists() }
505-
acmeService.with {
504+
def acmeService = acl.createUser { id = "acme.service"; systemUser(); skipIfExists() }.tap {
506505
// purge()
507506
allow { path = "/content"; permissions = ["jcr:read", "jcr:write"] }
508507
}
509-
510-
def johnDoe = acl.createUser { id = "john.doe"; fullName = "John Doe"; password = "ilovekittens"; skipIfExists() }
511-
johnDoe.with {
508+
def johnDoe = acl.createUser { id = "john.doe"; fullName = "John Doe"; password = "ilovekittens"; skipIfExists() }.tap {
512509
// purge()
513510
allow("/content", ["jcr:read"])
514511
}
515-
516-
acl.createGroup { id = "test.group" }.with {
512+
acl.createGroup { id = "test.group" }.tap {
517513
// removeAllMembers()
518514
addMember(acmeService)
519515
addMember(johnDoe)

0 commit comments

Comments
 (0)