Skip to content

Commit

Permalink
chore: Swap out "clone" permissions (licenses and amendments) for exe…
Browse files Browse the repository at this point in the history
…cute type perms
  • Loading branch information
EthanFreestone committed Sep 25, 2024
1 parent c5e89e1 commit 123809a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions service/src/main/okapi/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},{
"methods": ["POST"],
"pathPattern": "/licenses/licenses/{id}/clone",
"permissionsRequired": [ "licenses.licenses.item.clone" ]
"permissionsRequired": [ "licenses.licenses.clone.execute" ]
},{
"methods": ["DELETE"],
"pathPattern": "/licenses/licenses/{id}",
Expand All @@ -59,7 +59,7 @@
},{
"methods": ["POST"],
"pathPattern": "/licenses/amendments/{id}/clone",
"permissionsRequired": [ "licenses.licenses.item.clone" ]
"permissionsRequired": [ "licenses.amendments.clone.execute" ]
},{
"methods": ["DELETE"],
"pathPattern": "/licenses/amendments/{id}",
Expand Down Expand Up @@ -287,7 +287,12 @@
"description": "Put an license record"
},
{
"permissionName": "licenses.licenses.item.clone",
"permissionName": "licenses.licenses.clone.execute",
"displayName": "Licenses item clone",
"description": "Clone an license record"
},
{
"permissionName": "licenses.amendments.clone.execute",
"displayName": "Licenses item clone",
"description": "Clone an license record"
},
Expand All @@ -297,7 +302,8 @@
"licenses.licenses.view",
"licenses.licenses.item.post",
"licenses.licenses.item.put",
"licenses.licenses.item.clone"
"licenses.licenses.clone.execute",
"licenses.amendments.clone.execute"
]
},
{
Expand Down

0 comments on commit 123809a

Please sign in to comment.