Commit ef0d34f0 authored by Sebastien Robin's avatar Sebastien Robin

change permission of manage_copyObjects, it is not only used with management screens


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3023 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 85de0e5c
......@@ -17,7 +17,7 @@ from AccessControl import ClassSecurityInfo
from OFS.ObjectManager import ObjectManager
from OFS.CopySupport import CopyContainer as OriginalCopyContainer
from OFS.CopySupport import _cb_encode, _cb_decode, cookie_path, absattr
from Products.ERP5Type import Permissions as Permissions
from Products.ERP5Type import Permissions
from Products.CMFCore.CMFCatalogAware import CMFCatalogAware
from Acquisition import aq_base
from Products.CMFCore.utils import getToolByName
......@@ -44,7 +44,7 @@ class CopyContainer:
security = ClassSecurityInfo()
# Copy / Paste support
security.declareProtected( Permissions.ViewManagementScreens, 'manage_copyObjects' )
security.declareProtected( Permissions.ModifyPortalContent, 'manage_copyObjects' )
def manage_copyObjects(self, ids=None, uids=None, REQUEST=None, RESPONSE=None):
"""
Put a reference to the objects named in ids in the clip board
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment