From e78e249cbaddee6057ebddf40c349ad0c1c62bf6 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 24 Sep 2025 10:12:10 +0100 Subject: [PATCH] Bug 40868: Restore full list of permissions to the vendors app This patch adjusts the logic to consider all permissions and not just the top level flags Test plan: 1) Create or edit a user to have all acquisitions permissions except one (not relevant which one, any will do) 2) Log into the staff interface and go to acquisitions > vendors and click the vendor in the table 3) The left menu will be missing everything except invoices 4) Apply patch and restart_all 5) Refresh the page, the menu should now be populated --- Koha/REST/V1/Acquisitions/Vendors.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/V1/Acquisitions/Vendors.pm b/Koha/REST/V1/Acquisitions/Vendors.pm index d17f6e19527..745875cb591 100644 --- a/Koha/REST/V1/Acquisitions/Vendors.pm +++ b/Koha/REST/V1/Acquisitions/Vendors.pm @@ -203,7 +203,7 @@ sub config { my $c = shift->openapi->valid_input or return; my $patron = $c->stash('koha.user'); - my $userflags = C4::Auth::getuserflags( $patron->flags, $patron->id ); + my $userflags = C4::Auth::haspermission( $patron->userid ); my $permissions = Koha::Auth::Permissions->get_authz_from_flags( { flags => $userflags } ); my @gst_values = map { option => $_ + 0.0 }, split( '\|', C4::Context->preference("TaxRates") ); -- 2.50.1