Skip to content

Commit

Permalink
Merge pull request #3753 from wainuiomata/security-docs-self-missing
Browse files Browse the repository at this point in the history
docs: missing self in SessionSecurityPolicy example
  • Loading branch information
mmerickel authored Mar 3, 2024
2 parents 8130e7b + 3a59cfe commit 72f6185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/narr/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ For example, our above security policy can leverage these helpers like so:
else:
return Denied('User is not signed in.')
def remember(request, userid, **kw):
def remember(self, request, userid, **kw):
return self.helper.remember(request, userid, **kw)
def forget(request, **kw):
def forget(self, request, **kw):
return self.helper.forget(request, **kw)
Helpers are intended to be used with application-specific code. Notice how the
Expand Down

0 comments on commit 72f6185

Please sign in to comment.