• Chris McDonough's avatar
    Added Copy or Move permission in the course of attempting to resolve · 17552a97
    Chris McDonough authored
    Collector #376.
    
    As a result of this checkin:
    
     - a new permission 'Copy or Move' will be registered for all classes
       that inherit from OFS.CopySupport.CopySource.  This includes
       almost all Zope objects, as SimpleItem inherits from CopySource.
    
     - the new permission will be granted to the Anonymous and Manager
       roles by default.
    
     - Site managers may choose to disallow copying of objects by
       revoking the Copy or Move permission respective to a role in
       a place or globally.
    
    Notes:
    
    The methods cb_isCopyable and cb_isMoveable are coopted for this
    duty, although access control was never in their job description
    prior to this patch.
    17552a97
CopySupport.py 19.3 KB