Skip to content

Commit

Permalink
Forward-port fix for #12 from 2.13 branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Dec 21, 2015
1 parent 8f10021 commit e47723e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@ Changelog

For changes before verison 3.0, see ``HISTORY.txt``.

3.0.12 (unreleased)
-------------------

- Avoid acquiring ``access`` from module wrapped by
``SecurityInfo._ModuleSecurityInfo``. See:
https://github.com/zopefoundation/AccessControl/issues/12

3.0.11 (2014-11-02)
-------------------

- Harden test fix for machines that do not define `localhost`.


3.0.10 (2014-11-02)
-------------------

Expand Down
1 change: 1 addition & 0 deletions src/AccessControl/SecurityInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ class _ModuleSecurityInfo(SecurityInfo):
"""Encapsulate security information for modules."""

__roles__ = ACCESS_PRIVATE
access = False # deny by default, prevent acquiring 'access' from module

def __init__(self, module_name=None):
self.names = {}
Expand Down

0 comments on commit e47723e

Please sign in to comment.