Skip to content

Commit da75a9b

Browse files
author
Gordon B. McMillan
committed
Oops, fix the permission check!
1 parent 3b123a6 commit da75a9b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roundup/cgi_client.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: cgi_client.py,v 1.149 2002-07-30 20:04:38 gmcm Exp $
18+
# $Id: cgi_client.py,v 1.150 2002-07-30 20:43:18 gmcm Exp $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -710,7 +710,7 @@ def shownode(self, message=None, num_re=re.compile('^\d+$')):
710710
if keys and not self.form.has_key('__login_name'):
711711
try:
712712
userid = self.db.user.lookup(self.user)
713-
if not self.db.security.hasPermission('Edit', userid):
713+
if not self.db.security.hasPermission('Edit', userid, cn):
714714
message = _('You do not have permission to edit %s' %cn)
715715
else:
716716
props = parsePropsFromForm(self.db, cl, self.form, self.nodeid)
@@ -1695,6 +1695,10 @@ def parsePropsFromForm(db, cl, form, nodeid=0, num_re=re.compile('^\d+$')):
16951695

16961696
#
16971697
# $Log: not supported by cvs2svn $
1698+
# Revision 1.149 2002/07/30 20:04:38 gmcm
1699+
# Adapt metakit backend to new security scheme.
1700+
# Put some more permission checks in cgi_client.
1701+
#
16981702
# Revision 1.148 2002/07/30 16:09:11 gmcm
16991703
# Simple optimization.
17001704
#

0 commit comments

Comments
 (0)