Skip to content

Commit d8ebc80

Browse files
author
Richard Jones
committed
include info about new user roles
1 parent 9139d9d commit d8ebc80

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

roundup/admin.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
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 $
2020

2121
import sys, os, getpass, getopt, re, UserDict, shlex, shutil
2222
try:
@@ -993,6 +993,16 @@ def do_security(self, args):
993993
return 1
994994
else:
995995
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()
9961006
roles.sort()
9971007
for rolename, role in roles:
9981008
print _('Role "%(name)s":')%role.__dict__
@@ -1154,6 +1164,12 @@ def main(self):
11541164

11551165
#
11561166
# $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+
#
11571173
# Revision 1.19 2002/07/25 07:14:05 richard
11581174
# Bugger it. Here's the current shape of the new security implementation.
11591175
# Still to do:

0 commit comments

Comments
 (0)