|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | WWW request handler (also used in the stand-alone server). |
@@ -710,7 +710,7 @@ def shownode(self, message=None, num_re=re.compile('^\d+$')): |
710 | 710 | if keys and not self.form.has_key('__login_name'): |
711 | 711 | try: |
712 | 712 | 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): |
714 | 714 | message = _('You do not have permission to edit %s' %cn) |
715 | 715 | else: |
716 | 716 | 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+$')): |
1695 | 1695 |
|
1696 | 1696 | # |
1697 | 1697 | # $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 | +# |
1698 | 1702 | # Revision 1.148 2002/07/30 16:09:11 gmcm |
1699 | 1703 | # Simple optimization. |
1700 | 1704 | # |
|
0 commit comments