Skip to content

Commit

Permalink
feat: Give access to layout editor page to everyone - MEED-7657 - #2502
Browse files Browse the repository at this point in the history
Prior to this change, when adding a page template, the images attached to it are not viewable by External users. This is due to the fact that the access permission of attached image is computed switch page being edited, or if of type page template to current page (layout-editor). This change will fix two bugs:
- Give access to layout-editor page to anyone to let the ACL made by page permissions instead (by the Space Layout permissions if the page is added in a space)
- Make the attached image to a fictive page (not really instanciated yet), accessible to all users since the page can be used in any site/space.
  • Loading branch information
boubaker committed Oct 24, 2024
1 parent 42fe952 commit 4cf6ad4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
</init-params>
</component-plugin>
<component-plugin>
<name>LayoutEditorPageUpgrade</name>
<name>LayoutEditorPagePermissionUpgrade</name>
<set-method>addUpgradePlugin</set-method>
<type>io.meeds.social.upgrade.LayoutUpgradePlugin</type>
<init-params>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@
<page profiles="layout">
<name>layout-editor</name>
<title>Layout Editor</title>
<access-permissions>*:/platform/users</access-permissions>
<access-permissions>Everyone</access-permissions>
<edit-permission>manager:/platform/administrators</edit-permission>
<show-max-window>true</show-max-window>
<hide-shared-layout>true</hide-shared-layout>
Expand Down

0 comments on commit 4cf6ad4

Please sign in to comment.