Mercurial > p > roundup > code
diff roundup/mailgw.py @ 948:8d8db618c2c3
grant email access to admin too ;)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 19 Aug 2002 00:21:56 +0000 |
| parents | 23c9d4f86380 |
| children | 04a6b3bfbf23 |
line wrap: on
line diff
--- a/roundup/mailgw.py Mon Aug 19 00:21:37 2002 +0000 +++ b/roundup/mailgw.py Mon Aug 19 00:21:56 2002 +0000 @@ -73,7 +73,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.80 2002-08-01 00:56:22 richard Exp $ +$Id: mailgw.py,v 1.81 2002-08-19 00:21:56 richard Exp $ ''' @@ -102,10 +102,11 @@ This function is directly invoked by security.Security.__init__() as a part of the Security object instantiation. ''' - newid = security.addPermission(name="Email Registration", + security.addPermission(name="Email Registration", description="Anonymous may register through e-mail") - security.addPermission(name="Email Access", + p = security.addPermission(name="Email Access", description="User may use the email interface") + security.addPermissionToRole('Admin', p) class Message(mimetools.Message): ''' subclass mimetools.Message so we can retrieve the parts of the @@ -853,6 +854,12 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.80 2002/08/01 00:56:22 richard +# Added the web access and email access permissions, so people can restrict +# access to users who register through the email interface (for example). +# Also added "security" command to the roundup-admin interface to display the +# Role/Permission config for an instance. +# # Revision 1.79 2002/07/26 08:26:59 richard # Very close now. The cgi and mailgw now use the new security API. The two # templates have been migrated to that setup. Lots of unit tests. Still some
