File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -501,19 +501,15 @@ boolean canRun() {
501501void 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)
You can’t perform that action at this time.
0 commit comments