From 14be9cb209f94f72ae8d5a51e3e88dbb2266d65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20R=C3=A4is=C3=A4?= Date: Wed, 18 Feb 2026 08:52:46 +0200 Subject: [PATCH] Bug 23269: (follow-up) Fix priority modification for lesser permissions --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 653b6879c9..8ea41529d1 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -1320,12 +1320,6 @@ async function load_patron_holds_table(biblio_id, split_data) { targets: [2, 3], className: "dt-body-nowrap", }, - { - targets: [3, 9], - visible: CAN_user_reserveforothers_modify_holds_priority - ? true - : false, - }, ], columns: [ { @@ -1460,7 +1454,7 @@ async function load_patron_holds_table(biblio_id, split_data) { orderable: false, searchable: false, render: function (data, type, row, meta) { - if (row.status) { + if (row.status || !CAN_user_reserveforothers_modify_holds_priority) { return null; } let buttons = @@ -1679,7 +1673,7 @@ async function load_patron_holds_table(biblio_id, split_data) { orderable: false, searchable: false, render: function (data, type, row, meta) { - if (row.status) { + if (row.status || !CAN_user_reserveforothers_modify_holds_priority) { return null; } else { if (row.lowest_priority) { -- 2.34.1