Bugzilla – Attachment 186919 Details for
Bug 40868
Vendor module permissions are ignored
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40868: Restore full list of permissions to the vendors app
Bug-40868-Restore-full-list-of-permissions-to-the-.patch (text/plain), 1.52 KB, created by
OpenFifth Sandboxes
on 2025-09-25 11:44:43 UTC
(
hide
)
Description:
Bug 40868: Restore full list of permissions to the vendors app
Filename:
MIME Type:
Creator:
OpenFifth Sandboxes
Created:
2025-09-25 11:44:43 UTC
Size:
1.52 KB
patch
obsolete
>From 9e0ad6f0e8aea17a955a6902937d20638b1202a3 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >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 > >Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> >--- > 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 c3cb84873d..e0ec5c8fe9 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.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40868
:
186859
| 186919