summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 851050a)
raw | patch | inline | side by side (parent: 851050a)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 30 Jul 2002 21:37:43 +0000 (21:37 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 30 Jul 2002 21:37:43 +0000 (21:37 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@937 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi_client.py | patch | blob | history |
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index a46fe16ea803aa851877af86a78c6125eacb74c2..e59239a5fde7c994f357d986b9017456513d2f9d 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: cgi_client.py,v 1.150 2002-07-30 20:43:18 gmcm Exp $
+# $Id: cgi_client.py,v 1.151 2002-07-30 21:37:43 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
''' display a list of all the classes in the database
'''
userid = self.db.user.lookup(self.user)
- raise Unauthorised, _("You do not have permission to access"\
- " %(action)s.")%{'action': 'all classes'}
+ if not self.db.security.hasPermission('Edit', userid):
+ raise Unauthorised, _("You do not have permission to access"\
+ " %(action)s.")%{'action': 'all classes'}
self.pagehead(_('Table of classes'), message)
classnames = self.db.classes.keys()
#
# $Log: not supported by cvs2svn $
+# Revision 1.150 2002/07/30 20:43:18 gmcm
+# Oops, fix the permission check!
+#
# Revision 1.149 2002/07/30 20:04:38 gmcm
# Adapt metakit backend to new security scheme.
# Put some more permission checks in cgi_client.