Skip to content

Commit aa2656a

Browse files
authored
Only update rpd value if patron requested access via Open Library
1 parent 7bf58d8 commit aa2656a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openlibrary/plugins/upstream/account.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ def POST(self):
553553
has_special_access = audit.get('special_access')
554554
if (
555555
has_special_access
556+
and ol_account.get_user().preferences().get('pda', '')
556557
and ol_account.get_user().preferences().get('rpd')
557558
!= PDRequestStatus.FULFILLED.value
558559
):

0 commit comments

Comments
 (0)