Skip to content

Commit

Permalink
Merge pull request #4030 from plone/cp-permissions
Browse files Browse the repository at this point in the history
move all permissions for controlpanels to unifed file
  • Loading branch information
gforcada authored Oct 13, 2024
2 parents ad248d7 + cf0c460 commit f7f0b19
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
22 changes: 0 additions & 22 deletions Products/CMFPlone/controlpanel/browser/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@
xmlns:zcml="http://namespaces.zope.org/zcml"
>

<permission
id="plone.app.controlpanel.Imaging"
title="Plone Site Setup: Imaging"
/>

<permission
id="plone.app.controlpanel.TinyMCE"
title="Plone Site Setup: TinyMCE"
>
<role name="Manager" />
</permission>

<!-- Control Panel Main Template -->
<browser:page
name="prefs_main_template"
Expand Down Expand Up @@ -325,16 +313,6 @@
permission="cmf.ManagePortal"
/>

<permission
id="Products.CMFPlone.ManagePortalAliases"
title="Manage Portal Aliases"
/>

<permission
id="Products.CMFPlone.ManageContextAliases"
title="Manage Context Aliases"
/>

<browser:page
name="redirection-controlpanel"
for="plone.base.interfaces.IPloneSiteRoot"
Expand Down
22 changes: 22 additions & 0 deletions Products/CMFPlone/controlpanel/permissions.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,26 @@
<role name="Manager" />
</permission>

<permission
id="plone.app.controlpanel.Imaging"
title="Plone Site Setup: Imaging"
/>

<permission
id="plone.app.controlpanel.TinyMCE"
title="Plone Site Setup: TinyMCE"
>
<role name="Manager" />
</permission>

<permission
id="Products.CMFPlone.ManagePortalAliases"
title="Manage Portal Aliases"
/>

<permission
id="Products.CMFPlone.ManageContextAliases"
title="Manage Context Aliases"
/>

</configure>
2 changes: 2 additions & 0 deletions news/4028.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
move all permission definitions for controlpanels to unifed file from controlpanel directory
[jackahl]

0 comments on commit f7f0b19

Please sign in to comment.