Merge pull request #243 from Gluejar/b2u_server_errors

somehow the "borrow" function wasn't tested in "reserves"
pull/1/head
Raymond Yee 2013-11-12 15:31:31 -08:00
commit eabd8d1ecc
1 changed files with 1 additions and 1 deletions

View File

@ -2636,7 +2636,7 @@ def borrow(request, work_id):
except User.DoesNotExist:
libuser = None
if libuser:
acq = work.user_license(libuser).borrowable_acq
acq = work.get_user_license(libuser).borrowable_acq
if not libuser or not acq:
acq=work.get_lib_license(request.user).borrowable_acq
if acq: