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>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 23fe21df61)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
316c59c3e3
commit
2cdbf324c4
|
|
@ -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") );
|
||||
|
|
|
|||
Loading…
Reference in New Issue