Bugzilla – Attachment 147513 Details for
Bug 32968
Create granular permissions for ERM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32968: ERM granular permissions - API specs
Bug-32968-ERM-granular-permissions---API-specs.patch (text/plain), 11.17 KB, created by
Pedro Amorim
on 2023-02-28 17:59:10 UTC
(
hide
)
Description:
Bug 32968: ERM granular permissions - API specs
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-02-28 17:59:10 UTC
Size:
11.17 KB
patch
obsolete
>From 2c82cb899a6770fa955007776416a1543b330e34 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Tue, 28 Feb 2023 17:54:16 +0000 >Subject: [PATCH] Bug 32968: ERM granular permissions - API specs > >--- > api/v1/swagger/paths/erm_agreements.yaml | 24 ++++++++++++---- > api/v1/swagger/paths/erm_documents.yaml | 6 +++- > .../swagger/paths/erm_eholdings_packages.yaml | 28 +++++++++++++++---- > .../erm_eholdings_packages_resources.yaml | 6 +++- > .../paths/erm_eholdings_resources.yaml | 16 +++++++++-- > .../swagger/paths/erm_eholdings_titles.yaml | 28 +++++++++++++++---- > .../paths/erm_eholdings_titles_resources.yaml | 6 +++- > api/v1/swagger/paths/erm_licenses.yaml | 24 ++++++++++++---- > api/v1/swagger/paths/erm_users.yaml | 6 +++- > 9 files changed, 115 insertions(+), 29 deletions(-) > >diff --git a/api/v1/swagger/paths/erm_agreements.yaml b/api/v1/swagger/paths/erm_agreements.yaml >index 37233bdf37..9bd85871cf 100644 >--- a/api/v1/swagger/paths/erm_agreements.yaml >+++ b/api/v1/swagger/paths/erm_agreements.yaml >@@ -93,7 +93,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_agreement >+ - erm_eholdings > post: > x-mojo-to: ERM::Agreements#add > operationId: addErmAgreements >@@ -153,7 +157,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_agreement > "/erm/agreements/{agreement_id}": > get: > x-mojo-to: ERM::Agreements#get >@@ -216,7 +222,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_agreement >+ - erm_eholdings > put: > x-mojo-to: ERM::Agreements#update > operationId: updateErmAgreements >@@ -287,7 +297,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_agreement > delete: > x-mojo-to: ERM::Agreements#delete > operationId: deleteErmAgreements >@@ -333,4 +345,6 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_agreement >diff --git a/api/v1/swagger/paths/erm_documents.yaml b/api/v1/swagger/paths/erm_documents.yaml >index 31ea135413..6039864b73 100644 >--- a/api/v1/swagger/paths/erm_documents.yaml >+++ b/api/v1/swagger/paths/erm_documents.yaml >@@ -43,4 +43,8 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_licensing >+ - erm_agreement >diff --git a/api/v1/swagger/paths/erm_eholdings_packages.yaml b/api/v1/swagger/paths/erm_eholdings_packages.yaml >index 604f6bba08..b37491f152 100644 >--- a/api/v1/swagger/paths/erm_eholdings_packages.yaml >+++ b/api/v1/swagger/paths/erm_eholdings_packages.yaml >@@ -101,7 +101,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_eholdings >+ - erm_agreement > post: > x-mojo-to: ERM::EHoldings::Packages#add > operationId: addErmEHoldingsPackages >@@ -157,7 +161,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings > "/erm/eholdings/{provider}/packages/{package_id}": > get: > x-mojo-to: ERM::EHoldings::Packages#get >@@ -217,7 +223,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_eholdings >+ - erm_agreement > put: > x-mojo-to: ERM::EHoldings::Packages#update > operationId: updateErmEHoldingsPackages >@@ -281,7 +291,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings > delete: > x-mojo-to: ERM::EHoldings::Packages#delete > operationId: deleteErmEHoldingsPackages >@@ -327,7 +339,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings > patch: > x-mojo-to: ERM::EHoldings::Packages#edit > operationId: editErmEHoldingsPackages >@@ -388,4 +402,6 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings >diff --git a/api/v1/swagger/paths/erm_eholdings_packages_resources.yaml b/api/v1/swagger/paths/erm_eholdings_packages_resources.yaml >index 696f495857..4c6529edc9 100644 >--- a/api/v1/swagger/paths/erm_eholdings_packages_resources.yaml >+++ b/api/v1/swagger/paths/erm_eholdings_packages_resources.yaml >@@ -79,4 +79,8 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_eholdings >+ - erm_agreement >diff --git a/api/v1/swagger/paths/erm_eholdings_resources.yaml b/api/v1/swagger/paths/erm_eholdings_resources.yaml >index 9d4e5f3045..3c71f38f02 100644 >--- a/api/v1/swagger/paths/erm_eholdings_resources.yaml >+++ b/api/v1/swagger/paths/erm_eholdings_resources.yaml >@@ -78,7 +78,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_eholdings >+ - erm_agreement > "/erm/eholdings/{provider}/resources/{resource_id}": > get: > x-mojo-to: ERM::EHoldings::Resources#get >@@ -125,7 +129,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_eholdings >+ - erm_agreement > patch: > x-mojo-to: ERM::EHoldings::Resources#edit > operationId: editErmEHoldingsResources >@@ -186,4 +194,6 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings >diff --git a/api/v1/swagger/paths/erm_eholdings_titles.yaml b/api/v1/swagger/paths/erm_eholdings_titles.yaml >index d09627bc80..09adb54a85 100644 >--- a/api/v1/swagger/paths/erm_eholdings_titles.yaml >+++ b/api/v1/swagger/paths/erm_eholdings_titles.yaml >@@ -178,7 +178,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_eholdings >+ - erm_agreement > post: > x-mojo-to: ERM::EHoldings::Titles#add > operationId: addErmEHoldingsTitles >@@ -234,7 +238,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings > "/erm/eholdings/{provider}/titles/{title_id}": > get: > x-mojo-to: ERM::EHoldings::Titles#get >@@ -292,7 +298,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_eholdings >+ - erm_agreement > put: > x-mojo-to: ERM::EHoldings::Titles#update > operationId: updateErmEHoldingsTitles >@@ -356,7 +366,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings > delete: > x-mojo-to: ERM::EHoldings::Titles#delete > operationId: deleteErmEHoldingsTitles >@@ -402,7 +414,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings > > /erm/eholdings/local/titles/import: > post: >@@ -469,4 +483,6 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_eholdings >diff --git a/api/v1/swagger/paths/erm_eholdings_titles_resources.yaml b/api/v1/swagger/paths/erm_eholdings_titles_resources.yaml >index 1a871bfb9f..db340a532c 100644 >--- a/api/v1/swagger/paths/erm_eholdings_titles_resources.yaml >+++ b/api/v1/swagger/paths/erm_eholdings_titles_resources.yaml >@@ -74,4 +74,8 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_eholdings >+ - erm_agreement >\ No newline at end of file >diff --git a/api/v1/swagger/paths/erm_licenses.yaml b/api/v1/swagger/paths/erm_licenses.yaml >index 0abc7cf424..988f0deebf 100644 >--- a/api/v1/swagger/paths/erm_licenses.yaml >+++ b/api/v1/swagger/paths/erm_licenses.yaml >@@ -78,7 +78,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_licensing >+ - erm_agreement > post: > x-mojo-to: ERM::Licenses#add > operationId: addERMLicenses >@@ -138,7 +142,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_licensing > "/erm/licenses/{license_id}": > get: > x-mojo-to: ERM::Licenses#get >@@ -193,7 +199,11 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_licensing >+ - erm_agreement > put: > x-mojo-to: ERM::Licenses#update > operationId: updateERMlicenses >@@ -261,7 +271,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_licensing > delete: > x-mojo-to: ERM::Licenses#delete > operationId: deleteERMlicenses >@@ -307,4 +319,6 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_licensing >diff --git a/api/v1/swagger/paths/erm_users.yaml b/api/v1/swagger/paths/erm_users.yaml >index 8d9bb05023..2822088690 100644 >--- a/api/v1/swagger/paths/erm_users.yaml >+++ b/api/v1/swagger/paths/erm_users.yaml >@@ -55,5 +55,9 @@ > $ref: "../swagger.yaml#/definitions/error" > x-koha-authorization: > permissions: >- erm: 1 >+ erm: >+ - erm_admin >+ - erm_show >+ - erm_licensing >+ - erm_agreement > >-- >2.30.2
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 32968
:
146698
|
147466
|
147510
|
147511
|
147513
|
147514
|
147515
|
147516
|
147517
|
147518
|
147559
|
148797
|
148798
|
148799
|
148800
|
148801
|
148802
|
148803
|
148804
|
148959
|
148960
|
148961
|
148962
|
148963
|
148964
|
148965
|
148966
|
149423
|
149424
|
149425
|
149426
|
149427
|
149428
|
149429
|
149430
|
150060
|
150061
|
150062
|
150063
|
150064
|
150065
|
150066
|
150067