Skip to content

Commit 9e6750e

Browse files
author
Richard Jones
committed
grant email access to admin too ;)
1 parent 2c4d53d commit 9e6750e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

roundup/mailgw.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class node. Any parts of other types are each stored in separate files
7373
an exception, the original message is bounced back to the sender with the
7474
explanatory 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

110111
class 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

Comments
 (0)