Skip to content

Commit

Permalink
Fix docs example, User.is_authenticated has been changed to a bool so…
Browse files Browse the repository at this point in the history
…me time ago
  • Loading branch information
Martin J. Laubach committed Aug 20, 2024
1 parent 8ec4d83 commit 82a30b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/page.rst
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ This allows for various actions dependent on page and request, for example a
simple user access check can be implemented like this::

def authenticated_request_processor(page, request):
if not request.user.is_authenticated():
if not request.user.is_authenticated:
raise django.core.exceptions.PermissionDenied

Page.register_request_processor(authenticated_request_processor)
Expand Down

0 comments on commit 82a30b6

Please sign in to comment.