From 9f84c7db2d55001abaaf519aeb22aace858d4a5e Mon Sep 17 00:00:00 2001 From: Tim DiLauro Date: Thu, 11 Jul 2024 14:12:34 -0400 Subject: [PATCH] Clarify a comment. --- src/palace/manager/api/sip/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/palace/manager/api/sip/__init__.py b/src/palace/manager/api/sip/__init__.py index c3150ce7a..7fc263562 100644 --- a/src/palace/manager/api/sip/__init__.py +++ b/src/palace/manager/api/sip/__init__.py @@ -358,8 +358,9 @@ def _enforce_patron_location_restriction( """Raise an exception if patron location does not match the restriction. If a location restriction is specified for the library against which the - patron is attempting to authenticate, then the authentication will fail unless - the location associated with the patron exactly matches that of the library. + patron is attempting to authenticate, then the authentication will fail + if either (1) the patron does not have an associated location or (2) the + patron's location does not exactly match the one configured. """ if ( not isinstance(info, ProblemDetail)