|
16 | 16 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
17 | 17 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
18 | 18 | # |
19 | | -# $Id: admin.py,v 1.20 2002-08-01 00:56:22 richard Exp $ |
| 19 | +# $Id: admin.py,v 1.21 2002-08-01 01:07:37 richard Exp $ |
20 | 20 |
|
21 | 21 | import sys, os, getpass, getopt, re, UserDict, shlex, shutil |
22 | 22 | try: |
@@ -993,6 +993,16 @@ def do_security(self, args): |
993 | 993 | return 1 |
994 | 994 | else: |
995 | 995 | roles = self.db.security.role.items() |
| 996 | + role = self.db.config.NEW_WEB_USER_ROLES |
| 997 | + if ',' in role: |
| 998 | + print _('New Web users get the Roles "%(role)s"')%locals() |
| 999 | + else: |
| 1000 | + print _('New Web users get the Role "%(role)s"')%locals() |
| 1001 | + role = self.db.config.NEW_EMAIL_USER_ROLES |
| 1002 | + if ',' in role: |
| 1003 | + print _('New Email users get the Roles "%(role)s"')%locals() |
| 1004 | + else: |
| 1005 | + print _('New Email users get the Role "%(role)s"')%locals() |
996 | 1006 | roles.sort() |
997 | 1007 | for rolename, role in roles: |
998 | 1008 | print _('Role "%(name)s":')%role.__dict__ |
@@ -1154,6 +1164,12 @@ def main(self): |
1154 | 1164 |
|
1155 | 1165 | # |
1156 | 1166 | # $Log: not supported by cvs2svn $ |
| 1167 | +# Revision 1.20 2002/08/01 00:56:22 richard |
| 1168 | +# Added the web access and email access permissions, so people can restrict |
| 1169 | +# access to users who register through the email interface (for example). |
| 1170 | +# Also added "security" command to the roundup-admin interface to display the |
| 1171 | +# Role/Permission config for an instance. |
| 1172 | +# |
1157 | 1173 | # Revision 1.19 2002/07/25 07:14:05 richard |
1158 | 1174 | # Bugger it. Here's the current shape of the new security implementation. |
1159 | 1175 | # Still to do: |
|
0 commit comments