Skip to content

Commit

Permalink
Merge 58d886f into e626e00
Browse files Browse the repository at this point in the history
  • Loading branch information
1letter committed Nov 26, 2019
2 parents e626e00 + 58d886f commit 8cc8bdb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ Changelog

For changes before version 3.0, see ``HISTORY.rst``.

4.2 (unreleased)
4.3 (unreleased)
----------------

- Nothing changed yet.


4.2 (2019-11-22)
----------------

- add a check if object is present ```if not db``
(`#91 <https://github.com/zopefoundation/AccessControl/issues/91>`_).


4.1 (2019-09-02)
----------------

Expand Down
2 changes: 2 additions & 0 deletions src/AccessControl/owner.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def ownerInfo(user, getattr=getattr):
if uid is None:
return uid
db = aq_parent(aq_inner(user))
if not db:
return None
path = [absattr(db.id)]
root = db.getPhysicalRoot()
while 1:
Expand Down

0 comments on commit 8cc8bdb

Please sign in to comment.