diff roundup/mailgw.py @ 3412:aaf00739eb96 maint-0.8

Fix missing merge of fix to [SF#1177057]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 26 Sep 2005 02:14:07 +0000
parents 3f12b4bcf796
children f9279aaa346c
line wrap: on
line diff
--- a/roundup/mailgw.py	Mon Sep 26 02:06:25 2005 +0000
+++ b/roundup/mailgw.py	Mon Sep 26 02:14:07 2005 +0000
@@ -72,7 +72,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception.
 
-$Id: mailgw.py,v 1.159.2.6 2005-06-24 07:17:08 richard Exp $
+$Id: mailgw.py,v 1.159.2.7 2005-09-26 02:14:07 richard Exp $
 """
 __docformat__ = 'restructuredtext'
 
@@ -778,7 +778,8 @@
         # Don't create users if anonymous isn't allowed to register
         create = 1
         anonid = self.db.user.lookup('anonymous')
-        if not self.db.security.hasPermission('Create', anonid, 'user'):
+        if not (self.db.security.hasPermission('Create', anonid, 'user')
+                and self.db.security.hasPermission('Email Access', anonid)):
             create = 0
 
         # ok, now figure out who the author is - create a new user if the

Roundup Issue Tracker: http://roundup-tracker.org/