Skip to content

Commit

Permalink
chore: Added property specific KB validate permission to protect that…
Browse files Browse the repository at this point in the history
… endpoint
  • Loading branch information
EthanFreestone committed Sep 25, 2024
1 parent 49868b8 commit b3b8131
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 @@ -850,7 +850,7 @@
],
"pathPattern": "/erm/validate/remoteKB/*",
"permissionsRequired": [
"erm.kbs.validate"
"erm.kbs.property.validate"
]
},
{
Expand Down Expand Up @@ -1393,8 +1393,13 @@
},
{
"permissionName": "erm.kbs.validate",
"displayName": "Validate knowledge base post",
"description": "Validate knowledge base information"
"displayName": "Validate RemoteKB",
"description": "Validate a RemoteKB record"
},
{
"permissionName": "erm.kbs.property.validate",
"displayName": "Validate RemoteKB property",
"description": "Validate a property on a RemoteKB record"
},
{
"permissionName": "erm.kbs.view",
Expand All @@ -1419,7 +1424,8 @@
"erm.kbs.view",
"erm.kbs.item.post",
"erm.kbs.item.put",
"erm.kbs.validate"
"erm.kbs.validate",
"erm.kbs.property.validate"
]
},
{
Expand Down

0 comments on commit b3b8131

Please sign in to comment.