From 1d73b1bf731d60530a2ebcb4dec653e02c1d36bc Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 14 May 2025 10:45:09 -0400 Subject: [PATCH] Bug 39903: Catalog details page emits error if librarian cannot moderate comments on the record If a librarian cannot moderate comments and a bib has comments, the error "Something went wrong when loading the table." will pop up during the page load. Test Plan: 1) Add a comment to a record 2) Log in to the staff interface with a librarian that cannot moderate comments 3) Browse to the "Normal" view for that record 4) Note the error message 5) Apply this patch 6) Reload the page 7) No error! Signed-off-by: Owen Leonard Signed-off-by: Christopher --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index dd588e4874..92f1925831 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -889,7 +889,9 @@ Date Status Comment - Actions + [% IF ( CAN_user_tools_moderate_comments ) %] + Actions + [% END %] -- 2.39.5