-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WEB-3733 : Restrict permissions for "site admin" in control panel. So…
…me options are only available for manager
- Loading branch information
Showing
9 changed files
with
255 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:zcml="http://namespaces.zope.org/zcml" | ||
i18n_domain="plone"> | ||
i18n_domain="smartweb"> | ||
|
||
<configure zcml:condition="installed AccessControl.security"> | ||
<!-- -*- extra stuff goes here -*- --> | ||
|
||
|
||
<permission | ||
id="smartweb.manageronlyconfiglets" | ||
title="Smartweb: Manager-only configlets" | ||
description="" /> | ||
</configure> | ||
|
||
</configure> |
39 changes: 39 additions & 0 deletions
39
src/imio/smartweb/policy/profiles/default/controlpanel.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0"?> | ||
<object name="portal_controlpanel"> | ||
<configlet | ||
title="Member Fields" | ||
action_id="MemberFields" | ||
appId="MemberFields" | ||
category="plone-users" | ||
condition_expr="" | ||
icon_expr="string:card-list" | ||
url_expr="string:${portal_url}/@@member-fields" | ||
visible="True"> | ||
<permission>Smartweb: Manager-only configlets</permission> | ||
</configlet> | ||
|
||
<configlet | ||
title="User and Group Settings" | ||
action_id="UsersGroupsSettings" | ||
appId="UsersGroupsSettings" | ||
category="plone-users" | ||
condition_expr="" | ||
icon_expr="string:toggles" | ||
url_expr="string:${portal_url}/@@usergroup-controlpanel" | ||
visible="True"> | ||
<permission>Smartweb: Manager-only configlets</permission> | ||
</configlet> | ||
|
||
<configlet | ||
title="Anysurfer" | ||
action_id="anysurfer" | ||
appId="collective.anysurfer" | ||
category="Products" | ||
condition_expr="" | ||
url_expr="string:${portal_url}/@@anysurfer-settings" | ||
icon_expr="string:$portal_url/++resource++collective.anysurfer/anysurfer.png" | ||
visible="True"> | ||
<permission>Smartweb: Manager-only configlets</permission> | ||
</configlet> | ||
|
||
</object> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,69 @@ | ||
<?xml version="1.0"?> | ||
<rolemap> | ||
<permissions> | ||
|
||
<permission name="Portlets: Manage portlets" acquire="False"> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Site" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Mail" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Language" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Navigation" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Search" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Security" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Themes" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Types" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Inspect Relations" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: TinyMCE" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Markup" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Content rules: Manage rules" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Editing" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Filtering" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Smartweb: Manager-only configlets" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
</permissions> | ||
</rolemap> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/imio/smartweb/policy/upgrades/profiles/1020_to_1021/controlpanel.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0"?> | ||
<object name="portal_controlpanel"> | ||
<configlet | ||
title="Member Fields" | ||
action_id="MemberFields" | ||
appId="MemberFields" | ||
category="plone-users" | ||
condition_expr="" | ||
icon_expr="string:card-list" | ||
url_expr="string:${portal_url}/@@member-fields" | ||
visible="True"> | ||
<permission>Smartweb: Manager-only configlets</permission> | ||
</configlet> | ||
|
||
<configlet | ||
title="User and Group Settings" | ||
action_id="UsersGroupsSettings" | ||
appId="UsersGroupsSettings" | ||
category="plone-users" | ||
condition_expr="" | ||
icon_expr="string:toggles" | ||
url_expr="string:${portal_url}/@@usergroup-controlpanel" | ||
visible="True"> | ||
<permission>Smartweb: Manager-only configlets</permission> | ||
</configlet> | ||
|
||
<configlet | ||
title="Anysurfer" | ||
action_id="anysurfer" | ||
appId="collective.anysurfer" | ||
category="Products" | ||
condition_expr="" | ||
url_expr="string:${portal_url}/@@anysurfer-settings" | ||
icon_expr="string:$portal_url/++resource++collective.anysurfer/anysurfer.png" | ||
visible="True"> | ||
<permission>Smartweb: Manager-only configlets</permission> | ||
</configlet> | ||
|
||
</object> |
68 changes: 68 additions & 0 deletions
68
src/imio/smartweb/policy/upgrades/profiles/1020_to_1021/rolemap.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?xml version="1.0"?> | ||
<rolemap> | ||
|
||
<permissions> | ||
|
||
<permission name="Plone Site Setup: Site" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Mail" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Language" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Navigation" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Search" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Security" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Themes" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Types" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Inspect Relations" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: TinyMCE" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Markup" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Content rules: Manage rules" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Editing" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Plone Site Setup: Filtering" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
<permission name="Smartweb: Manager-only configlets" acquire="False"> | ||
<role name="Manager"/> | ||
</permission> | ||
|
||
</permissions> | ||
|
||
</rolemap> |