@@ -, +, @@ suggestions_manage permission --- .../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 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt +++ a/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({ --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -847,7 +847,7 @@