Skip to content

Commit

Permalink
MODINVSTOR-1170. Add required module permissions (#1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiNosko authored Oct 23, 2024
1 parent ed2dd41 commit 6eb0a04
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -562,11 +562,13 @@
}, {
"methods": ["POST"],
"pathPattern": "/subject-types",
"permissionsRequired": ["inventory-storage.subject-types.item.post"]
"permissionsRequired": ["inventory-storage.subject-types.item.post"],
"modulePermissions": ["user-tenants.collection.get"]
}, {
"methods": ["PUT"],
"pathPattern": "/subject-types/{id}",
"permissionsRequired": ["inventory-storage.subject-types.item.put"]
"permissionsRequired": ["inventory-storage.subject-types.item.put"],
"modulePermissions": ["user-tenants.collection.get"]
}, {
"methods": ["DELETE"],
"pathPattern": "/subject-types/{id}",
Expand All @@ -589,11 +591,13 @@
}, {
"methods": ["POST"],
"pathPattern": "/subject-sources",
"permissionsRequired": ["inventory-storage.subject-sources.item.post"]
"permissionsRequired": ["inventory-storage.subject-sources.item.post"],
"modulePermissions": ["user-tenants.collection.get"]
}, {
"methods": ["PUT"],
"pathPattern": "/subject-sources/{id}",
"permissionsRequired": ["inventory-storage.subject-sources.item.put"]
"permissionsRequired": ["inventory-storage.subject-sources.item.put"],
"modulePermissions": ["user-tenants.collection.get"]
}, {
"methods": ["DELETE"],
"pathPattern": "/subject-sources/{id}",
Expand Down

0 comments on commit 6eb0a04

Please sign in to comment.