From 695a11468202612ad232e1568a83afc2ca80beda Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 3 Mar 2022 12:34:33 +0000 Subject: [PATCH] Bug 30213: Hide Delete (aka Priority) column when user only has place_hold permission This patch changes the way the priority column displays when viewing a list of holds as a user who doesn't have permission to change hold priority. To test: - Apply the patch and log into the staff interface as a user with at least "place_hold" permission. - Locate a record which can be put on hold and place multiple holds. - View the list of holds. - As a user with both "place_hold" and "modify_holds_priority" permission, you should see a "Priority" column with + Priority [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] - Priority   - [% ELSE %] - Delete? [% END %] Patron Notes @@ -55,30 +53,35 @@ - [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %] - - [% ELSE %] - - + [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] + [% PROCESS priority_dropdown %] [% ELSE %] - + [% END %] + + [% ELSE %] - + + [% END %] - + [% ELSE %] + + [% hold.priority | html %] [% END %] [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] -- 2.20.1