[CMF-checkins] CVS: CMF/CMFCollector - CollectorIssue.py:1.19
Ken Manheimer
klm@zope.com
Sat, 27 Oct 2001 23:58:28 -0400
Update of /cvs-repository/CMF/CMFCollector
In directory cvs.zope.org:/tmp/cvs-serv29346
Modified Files:
CollectorIssue.py
Log Message:
.no_submitter_email(): Should not be restricted to issue editors!
=== CMF/CMFCollector/CollectorIssue.py 1.18 => 1.19 ===
self._collector_path = "/".join(collector.getPhysicalPath())
- security.declareProtected(EditCollectorIssue, 'no_submitter_email')
+ security.declareProtected(CMFCorePermissions.View, 'no_submitter_email')
def no_submitter_email(self):
"""True if there's no way to get an email address for the submitter."""
if self.submitter_email:
return 0
if self.submitter_id != str(self.acl_users._nobody):
member = self.portal_membership.getMemberById(self.submitter_id)
- if member and member.getProperty('email', ''):
+ if member and member.getProperty('email'):
return 0
return 1