Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from 4teamwork/ne/edit-permission-fix
Fix edit permissions for addressblock
- Loading branch information
Showing
6 changed files
with
28 additions
and
0 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
Empty file.
16 changes: 16 additions & 0 deletions
16
...20190521172501_add_missing_permission_for_editing/types/ftw.addressblock.AddressBlock.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,16 @@ | ||
<?xml version="1.0"?> | ||
<object name="ftw.addressblock.AddressBlock"> | ||
|
||
<action title="Edit" | ||
action_id="edit" | ||
category="object" | ||
condition_expr="" | ||
description="" | ||
icon_expr="" | ||
link_target="" | ||
url_expr="string:${object_url}/edit" | ||
visible="True"> | ||
<permission value="Modify portal content"/> | ||
</action> | ||
|
||
</object> |
9 changes: 9 additions & 0 deletions
9
ftw/addressblock/upgrades/20190521172501_add_missing_permission_for_editing/upgrade.py
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,9 @@ | ||
from ftw.upgrade import UpgradeStep | ||
|
||
|
||
class AddMissingPermissionForEditing(UpgradeStep): | ||
"""Add missing permission for editing. | ||
""" | ||
|
||
def __call__(self): | ||
self.install_upgrade_profile() |