Skip to content

Commit

Permalink
Adding rep:policy to allow forms-users read access in conf/__appId__ (#…
Browse files Browse the repository at this point in the history
…1213)

* Adding rep:policy to allow forms-users read access in conf/__appId__

* Deleting conf/__appId__/_rep_policy.xml if forms add-on is not included

---------

Co-authored-by: Mayank Jindal <mayankjndal@adobe.com>
Co-authored-by: Pankaj Parashar <pankajpr@adobe.com>
  • Loading branch information
3 people committed Sep 23, 2024
1 parent 4128673 commit 3543213
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="rep:ACL">
<allow
jcr:primaryType="rep:GrantACE"
rep:principalName="forms-users"
rep:privileges="{Name}[jcr:read]"/>
</jcr:root>
1 change: 1 addition & 0 deletions src/main/resources/META-INF/archetype-post-generate.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ if (includeForms == "n" && includeFormsenrollment == "n" && includeFormscommunic
assert new File("$confFolder/settings/wcm/templates/basic-af").deleteDir()
assert new File("$confFolder/settings/wcm/templates/blank-af").deleteDir()
assert new File("$confFolder/settings/cloudconfigs/fdm").deleteDir()
assert new File("$confFolder/_rep_policy.xml").delete()
assert new File("$uiContentPackage/src/main/content/jcr_root/content/dam/formsanddocuments-fdm").deleteDir()
assert new File("$uiContentPackage/src/main/content/jcr_root/content/dam/formsanddocuments-themes").deleteDir()
assert new File("$uiContentPackage/src/main/content/jcr_root/content/dam/$appId/sample_logo.png").deleteDir()
Expand Down

0 comments on commit 3543213

Please sign in to comment.