From cdcb7474b9c73f3707257477fe6b7b2c1a3b0023 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 Nov 2019 19:59:21 +0100 Subject: [PATCH] Bug 23590: Only return patrons that have the suggestions_manage permission MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sponsored-by: BULAC - http://www.bulac.fr/ Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- .../prog/en/modules/common/patron_search.tt | 9 +++ .../prog/en/modules/suggestion/suggestion.tt | 2 +- suggestion/add_user_search.pl | 63 +++++++++++++++++++ 3 files changed, 73 insertions(+), 1 deletion(-) create mode 100755 suggestion/add_user_search.pl diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt index 54f9899353..19cd0ab952 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt @@ -53,6 +53,10 @@
Only staff with superlibrarian or acquisitions permissions (or order_manage permission if granular permissions are enabled) are returned in the search results
[% END %] + [% IF patrons_with_suggestion_perm_only %] +
Only staff with superlibrarian or suggestions_manage permissions are returned in the search results
+ [% END %] +
Browse by last name: [% FOREACH letter IN alphabet.split(' ') %] @@ -167,6 +171,11 @@ 'name': 'has_permission', 'value': 'acquisition.order_manage', } + [% ELSIF patrons_with_suggestion_perm_only %] + ,{ + 'name': 'has_permission', + 'value': 'acquisition.suggestions_manage', + } [% END %] ); $.ajax({ diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index be50156aa8..9b50d2938f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -859,7 +859,7 @@