Skip to content

Commit

Permalink
add comment from suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Dieter Maurer <d-maurer@users.noreply.github.com>
  • Loading branch information
perrinjerome and d-maurer committed Mar 13, 2024
1 parent 3ee0e25 commit 6ac5c18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/AccessControl/ZopeGuards.py
Expand Up @@ -275,6 +275,12 @@ def __next__(self):
next = __next__


# The following three view classes are used only for mappings of type `dict`
# (not subclasses). Therefore, the mapping does not have security assertions
# and cannot acquire ones. As a consequence, the `guard` calls used in their
# methods verify that the checked key or value is accessible based solely on
# its own virtues, i.e. either because it is public or has its own security
# assertions allowing access.
class _SafeMappingView:
__allow_access_to_unprotected_subobjects__ = 1

Expand Down

0 comments on commit 6ac5c18

Please sign in to comment.