From: richard Date: Mon, 19 Aug 2002 00:21:56 +0000 (+0000) Subject: grant email access to admin too ;) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=03c2a1cbfaf7f318434d369c412f251e8283b316;p=roundup.git grant email access to admin too ;) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@964 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/mailgw.py b/roundup/mailgw.py index ff2346b..edbfb89 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -73,7 +73,7 @@ are calling the create() method to create a new node). If an auditor raises 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 @@ def initialiseSecurity(security): 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 @@ def parseContent(content, keep_citations, keep_body, # # $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