[Koha-bugs] [Bug 29168] Only show "Request article" if allowed on the detail view

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 7 16:44:17 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29168

--- Comment #7 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 125890
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125890&action=edit
Bug 29168: Only show 'Request article' if allowed on the detail view

This patch adds a check for the patron being able to place the request,
in the case of logged in patron. The anonymous patron will still be
displayed the link, and redirected to the login page as required.

To test:
1. Set the article request limit to 1
2. Place a request on behalf of a known patron
3. With the patron session, in the OPAC, try to place a new article
   request from the detail page
=> SUCCESS: There's no link
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list