Bugzilla – Attachment 186889 Details for
Bug 40684
Permission error for vendors if user has not full acquisition module permission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40684: Adjust permissions for vendors
Bug-40684-Adjust-permissions-for-vendors.patch (text/plain), 1.75 KB, created by
Nick Clemens (kidclamp)
on 2025-09-24 14:52:55 UTC
(
hide
)
Description:
Bug 40684: Adjust permissions for vendors
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-09-24 14:52:55 UTC
Size:
1.75 KB
patch
obsolete
>From fd8afa071aec8e4bcb777f77eedd62ba6356ee3b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 2 Sep 2025 10:17:10 +0200 >Subject: [PATCH] Bug 40684: Adjust permissions for vendors > >The acquisition config route should be accessible to users >with at least one acquisition subpermission or erm permission. > >The list vendors route should be accessible to users with the erm >permission. > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > api/v1/swagger/paths/acquisitions_vendors.yaml | 7 ++++--- > api/v1/swagger/paths/acquisitions_vendors_config.yaml | 3 ++- > 2 files changed, 6 insertions(+), 4 deletions(-) > >diff --git a/api/v1/swagger/paths/acquisitions_vendors.yaml b/api/v1/swagger/paths/acquisitions_vendors.yaml >index a7ba8450f62..73839cd3423 100644 >--- a/api/v1/swagger/paths/acquisitions_vendors.yaml >+++ b/api/v1/swagger/paths/acquisitions_vendors.yaml >@@ -78,9 +78,10 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- acquisition: >- - vendors_manage >- - marc_order_manage >+ - acquisition: >+ - vendors_manage >+ - marc_order_manage >+ - erm: 1 > post: > x-mojo-to: Acquisitions::Vendors#add > operationId: addVendor >diff --git a/api/v1/swagger/paths/acquisitions_vendors_config.yaml b/api/v1/swagger/paths/acquisitions_vendors_config.yaml >index 4bc3e814ece..e585309a5f3 100644 >--- a/api/v1/swagger/paths/acquisitions_vendors_config.yaml >+++ b/api/v1/swagger/paths/acquisitions_vendors_config.yaml >@@ -35,4 +35,5 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- acquisition: 1 >+ - acquisition: '*' >+ - erm: 1 >-- >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 40684
:
186027
|
186889
|
186891