rpms/moin/F-10 hierarchical_acl_fix_897cdbe9e8f2.patch,NONE,1.1
Ville-Pekka Vainio
vpv at fedoraproject.org
Sat Jun 13 20:28:49 UTC 2009
Author: vpv
Update of /cvs/pkgs/rpms/moin/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29024
Added Files:
hierarchical_acl_fix_897cdbe9e8f2.patch
Log Message:
add the new patch too :)
hierarchical_acl_fix_897cdbe9e8f2.patch:
--- NEW FILE hierarchical_acl_fix_897cdbe9e8f2.patch ---
# HG changeset patch
# User Christopher Denter <moin GUESSWHAT the DASH space DASH station ROUNDTHING com>
# Date 1244501152 -7200
# Node ID 897cdbe9e8f24cd43cd53129ce6a6467d8c7685a
# Parent 47c0ada5c1a26b2e7d995a99547d8a970037396a
Provide fix for recently added failing security tests.
--- a/MoinMoin/security/__init__.py Tue Jun 09 00:44:00 2009 +0200
+++ b/MoinMoin/security/__init__.py Tue Jun 09 00:45:52 2009 +0200
@@ -69,6 +69,10 @@
allowed = acl.may(request, username, right)
if allowed is not None:
return allowed
+ # If the item has an acl (even one that doesn't match) we *do not*
+ # check the parents. We only check the parents if there's no acl on
+ # the item at all.
+ break
if not some_acl:
allowed = cache.acl_rights_default.may(request, username, right)
if allowed is not None:
More information about the fedora-extras-commits
mailing list