Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Jul 17, 2023
1 parent 35f79ff commit 3f1d1f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/design/plone/policy/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
zope.traversing.interfaces.IBeforeTraverseEvent"
handler=".rejectanonymous.insertRejectAnonymousHook"
/>

</configure>
2 changes: 1 addition & 1 deletion src/design/plone/policy/rejectanonymous.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
def insertRejectAnonymousHook(portal, event):
"""force authentication for request with X-ForceAuth header"""
if event.request.getHeader("X-ForceAuth"):
event.request.post_traverse(rejectAnonymous, (portal, event.request))
event.request.post_traverse(rejectAnonymous, (portal, event.request))

0 comments on commit 3f1d1f2

Please sign in to comment.