Skip to content

Commit 448916c

Browse files
author
Alexander Smishlajev
committed
fix argument order in call to hasPermission;
remove meaningless comment that looks like vim modeline (but is not, actually)
1 parent f63de32 commit 448916c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

roundup/mailgw.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# vim: ts=4 sw=4 expandtab
19-
#
2018

2119
"""An e-mail gateway for Roundup.
2220
@@ -74,7 +72,7 @@ class node. Any parts of other types are each stored in separate files
7472
an exception, the original message is bounced back to the sender with the
7573
explanatory message given in the exception.
7674
77-
$Id: mailgw.py,v 1.155 2004-09-14 22:09:48 richard Exp $
75+
$Id: mailgw.py,v 1.156 2004-09-29 07:05:57 a1s Exp $
7876
"""
7977
__docformat__ = 'restructuredtext'
8078

@@ -769,7 +767,7 @@ def handle_message(self, message):
769767
# Don't create users if anonymous isn't allowed to register
770768
create = 1
771769
anonid = self.db.user.lookup('anonymous')
772-
if not self.db.security.hasPermission('Create', 'user', anonid):
770+
if not self.db.security.hasPermission('Create', anonid, 'user'):
773771
create = 0
774772

775773
# ok, now figure out who the author is - create a new user if the

0 commit comments

Comments
 (0)