summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d3e2931)
raw | patch | inline | side by side (parent: d3e2931)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 19 Aug 2002 00:21:56 +0000 (00:21 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 19 Aug 2002 00:21:56 +0000 (00:21 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@964 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/mailgw.py | patch | blob | history |
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index ff2346bfd5b7602271854a572e3bfdcba693a4d9..edbfb89254cb66621090fc246985b0dd8fb93583 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
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 $
'''
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
#
# $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