Skip to content

Commit 31ef60d

Browse files
authored
Improve docstring
1 parent 426817f commit 31ef60d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

djangosaml2/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ def add_idp_hinting(self, http_response):
189189

190190
def should_prevent_auth(self, request) -> bool:
191191
# If the user is already authenticated that maybe because of two reasons:
192-
# A) He has this URL in two browser windows and in the other one he
193-
# has already initiated the authenticated session.
194-
# B) He comes from a view that (incorrectly) send him here because
195-
# he does not have enough permissions. That view should have shown
192+
# A) They have this URL in two browser windows and in the other one they
193+
# have already initiated the authenticated session.
194+
# B) They comes from a view that (incorrectly) sends them here because
195+
# they do not have enough permissions. That view should have shown
196196
# an authorization error in the first place.
197197
return request.user.is_authenticated
198198

0 commit comments

Comments
 (0)