# HG changeset patch # User Alexander Smishlajev # Date 1096441557 0 # Node ID b2fd52ba7ffa7592da6d76bd6d9b67ab5ab319c5 # Parent d138df58b0c3e8e280a84b44fa9983209a4bcabc fix argument order in call to hasPermission; remove meaningless comment that looks like vim modeline (but is not, actually) diff -r d138df58b0c3 -r b2fd52ba7ffa roundup/mailgw.py --- 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