diff roundup/mailgw.py @ 2698:b2fd52ba7ffa

fix argument order in call to hasPermission; remove meaningless comment that looks like vim modeline (but is not, actually)
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Wed, 29 Sep 2004 07:05:57 +0000
parents 437775793d8e
children 3ebbb8111503
line wrap: on
line diff
--- a/roundup/mailgw.py	Wed Sep 29 07:01:44 2004 +0000
+++ b/roundup/mailgw.py	Wed Sep 29 07:05:57 2004 +0000
@@ -15,8 +15,6 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-# vim: ts=4 sw=4 expandtab
-#
 
 """An e-mail gateway for Roundup.
 
@@ -74,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.155 2004-09-14 22:09:48 richard Exp $
+$Id: mailgw.py,v 1.156 2004-09-29 07:05:57 a1s Exp $
 """
 __docformat__ = 'restructuredtext'
 
@@ -769,7 +767,7 @@
         # 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', 'user', anonid):
+        if not self.db.security.hasPermission('Create', anonid, 'user'):
             create = 0
 
         # ok, now figure out who the author is - create a new user if the

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