[Zope-CVS] CVS: Products/VerboseSecurity - __init__.py:1.4
Gary Poster
gary at zope.com
Wed Sep 8 14:40:49 EDT 2004
Update of /cvs-repository/Products/VerboseSecurity
In directory cvs.zope.org:/tmp/cvs-serv20389
Modified Files:
__init__.py
Log Message:
Make VerboseSecurity honor configuration settings for ownership and authentication checks.
=== Products/VerboseSecurity/__init__.py 1.3 => 1.4 ===
--- Products/VerboseSecurity/__init__.py:1.3 Wed Jun 16 22:38:44 2004
+++ Products/VerboseSecurity/__init__.py Wed Sep 8 14:40:49 2004
@@ -20,6 +20,11 @@
from VerboseSecurityPolicy import VerboseSecurityPolicy
if os.environ.get('ZOPE_VERBOSE_SECURITY', '1'):
+ from App.config import getConfiguration
from AccessControl.SecurityManager import setSecurityPolicy
- setSecurityPolicy(VerboseSecurityPolicy())
+ config = getConfiguration()
+ policy = VerboseSecurityPolicy(
+ not config.skip_ownership_checking,
+ not config.skip_authentication_checking)
+ setSecurityPolicy(policy)
import PermissionRolePatch
More information about the Zope-CVS
mailing list