Skip to content

Commit

Permalink
chore: Add separate perm for related entitlements
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanFreestone committed Sep 25, 2024
1 parent 87c422e commit 9267195
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions service/src/main/okapi/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@
],
"pathPattern": "/erm/resource/{id}/entitlements",
"permissionsRequired": [
"erm.resources.item.entitlement.get"
"erm.resources.entitlement.get"
]
},
{
Expand All @@ -607,7 +607,7 @@
],
"pathPattern": "/erm/resource/{id}/entitlements/related",
"permissionsRequired": [
"erm.resources.item.entitlement.get"
"erm.resources.entitlement.related.get"
]
},
{
Expand Down Expand Up @@ -1605,10 +1605,15 @@
"description": "Get resource record"
},
{
"permissionName": "erm.resources.item.entitlement.get",
"displayName": "Resources item entitlement get",
"permissionName": "erm.resources.entitlement.get",
"displayName": "Resources entitlement get",
"description": "Get resource's entitlement records"
},
{
"permissionName": "erm.resources.entitlement.get",
"displayName": "Resources related entitlement get",
"description": "Get resource's related entitlement records"
},
{
"permissionName": "erm.resources.entitlementOptions.get",
"displayName": "Resources item entitlement options get",
Expand All @@ -1624,7 +1629,8 @@
"subPermissions": [
"erm.resources.collection.get",
"erm.resources.item.get",
"erm.resources.item.entitlement.get",
"erm.resources.entitlement.get",
"erm.resources.entitlement.related.get",
"erm.resources.entitlementOptions.get",
"erm.resources.entitlementOptions.static.get",
"erm.entitlements.view",
Expand Down

0 comments on commit 9267195

Please sign in to comment.