@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373an exception, the original message is bounced back to the sender with the
7474explanatory message given in the exception.
7575
76- $Id: mailgw.py,v 1.80 2002-08-01 00:56:22 richard Exp $
76+ $Id: mailgw.py,v 1.81 2002-08-19 00:21:56 richard Exp $
7777'''
7878
7979
@@ -102,10 +102,11 @@ def initialiseSecurity(security):
102102 This function is directly invoked by security.Security.__init__()
103103 as a part of the Security object instantiation.
104104 '''
105- newid = security .addPermission (name = "Email Registration" ,
105+ security .addPermission (name = "Email Registration" ,
106106 description = "Anonymous may register through e-mail" )
107- security .addPermission (name = "Email Access" ,
107+ p = security .addPermission (name = "Email Access" ,
108108 description = "User may use the email interface" )
109+ security .addPermissionToRole ('Admin' , p )
109110
110111class Message (mimetools .Message ):
111112 ''' subclass mimetools.Message so we can retrieve the parts of the
@@ -853,6 +854,12 @@ def parseContent(content, keep_citations, keep_body,
853854
854855#
855856# $Log: not supported by cvs2svn $
857+ # Revision 1.80 2002/08/01 00:56:22 richard
858+ # Added the web access and email access permissions, so people can restrict
859+ # access to users who register through the email interface (for example).
860+ # Also added "security" command to the roundup-admin interface to display the
861+ # Role/Permission config for an instance.
862+ #
856863# Revision 1.79 2002/07/26 08:26:59 richard
857864# Very close now. The cgi and mailgw now use the new security API. The two
858865# templates have been migrated to that setup. Lots of unit tests. Still some
0 commit comments