Mercurial > p > roundup > code
diff roundup/mailgw.py @ 2649:1df7d4a41da4
Buncha stuff (sorry about the large checkin):
- Permissions may now be defined on a per-property basis
- added "Create" Permission. Replaces the "Web"- and "Email Registration"
Permissions.
- added option to turn off registration confirmation via email
("instant_registration" in config)
Migrated the user edit/view permission to use check code.
Fixed a buncha stuff in the default templates. Needs a thorough review
though.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 28 Jul 2004 02:29:46 +0000 |
| parents | 2bbcfc80ba5b |
| children | bdf3a73dfd04 |
line wrap: on
line diff
--- a/roundup/mailgw.py Tue Jul 27 11:36:01 2004 +0000 +++ b/roundup/mailgw.py Wed Jul 28 02:29:46 2004 +0000 @@ -74,7 +74,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.152 2004-07-26 09:29:22 a1s Exp $ +$Id: mailgw.py,v 1.153 2004-07-28 02:29:45 richard Exp $ """ __docformat__ = 'restructuredtext' @@ -117,8 +117,6 @@ This function is directly invoked by security.Security.__init__() as a part of the Security object instantiation. ''' - security.addPermission(name="Email Registration", - description="Anonymous may register through e-mail") p = security.addPermission(name="Email Access", description="User may use the email interface") security.addPermissionToRole('Admin', p) @@ -764,7 +762,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('Email Registration', anonid): + if not self.db.security.hasPermission('Create', 'user', anonid): create = 0 # ok, now figure out who the author is - create a new user if the
