Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Katrin Fischer 603ad3a094 Bug 20793: Don't show a holds link in staff for users without permission
On the results list in staff the 'Holds (x)' link always shows
independent of the permissions of the staff user.

This patch tightens the permission checks on the result page
to explicitly check for the place_holds permission.

To test:
- Create a staff user with place_holds permission
- Check the result list, you should see 2 links to the
  holds page:
  - 'Place holds' on top of the results list
  - 'Holds (x)' at the bottom of each entry in the results
     list
  - Verify both links work
- Create a staff user without place_holds_permission
  - Without the patch you'll see the second link,
    but it will lead to a permission error
  - With the patch you'll still see the 'Holds (x)', but
    it will no longer be a link.
- Go to the detail page of a record with an existing hold.
  - Repeat test with both staff users.
  - One time the Hold information in the bibliographic information
    should show as a link, the other time as a simple text.

Displaying the information about existing holds still make sense
as this is the current beheviour.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-07-02 12:03:07 +00:00
..
acqui Bug 20881: Order receiving: Price filter missing on_editing 2018-06-22 13:20:29 +00:00
admin Bug 20073: Move Elasticsearch configs to yaml files and improve the default settings. 2018-06-22 14:37:56 +00:00
authorities Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
basket Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
batch
catalogue Bug 20793: Don't show a holds link in staff for users without permission 2018-07-02 12:03:07 +00:00
cataloguing Bug 18973: Auto focus the ISBN field on Z39.50 search form in cataloguing 2018-06-22 16:27:02 +00:00
circ Bug 20744: Replace staff client header Koha logo gif with transparent png 2018-06-22 20:37:01 +00:00
clubs Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
common Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
course_reserves Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
errors Bug 16270: Typo authentification/authentication 2016-04-29 14:44:26 +00:00
help Bug 2426: Remove deprecated management permission 2018-06-08 12:17:25 +00:00
ill Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
installer Revert "Bug 20104: Update minimum version of Perl to 5.20" 2018-04-19 12:32:23 -03:00
labels Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
members Bug 20585: Label surname as name for organisation type patrons 2018-06-29 20:39:30 +00:00
offline_circ Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
onboarding Bug 20189: Fix style on installer and onboarding pages 2018-02-13 12:57:21 -03:00
patron_lists Bug 9302: Add ability to merge patron records 2018-04-20 13:34:41 -03:00
patroncards Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
plugins Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
reports Bug 20774: Trivial HTML error in itemslost.tt 2018-05-29 13:34:02 +00:00
reserve Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
reviews Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
rotating_collections Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
serials Bug 7910: Give feedack when the subscriptions have been renewed 2018-05-11 11:04:44 -03:00
services Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
suggestion Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
tags Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere 2018-04-13 11:49:44 -03:00
test Bug 14321: Final cleanup, removing obsolete files 2015-09-25 12:02:52 -03:00
tools Bug 20559: Occurrences of loading-small.gif still exist 2018-07-02 11:16:53 +00:00
virtualshelves Bug 17886: Don't show option to add to existing list if there are no lists 2018-06-29 20:28:38 +00:00
about.tt Bug 7143: Update about page for documentation team 2018-05-16 13:13:09 -03:00
auth.tt Bug 20291: Add a StaffLoginInstructions preference for adding text to staff client login 2018-04-02 18:08:07 -03:00
intranet-main.tt Bug 20489: Remove warnings from the interface 2018-04-20 12:24:00 -03:00