Skip to content

Commit

Permalink
MODFIN-377 clean up permissions (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaSedyx authored Oct 11, 2024
1 parent 8e32d0c commit d10878e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"finance-storage.budget-expense-classes.item.post",
"finance-storage.funds.item.get",
"finance-storage.ledgers.item.get",
"finance-storage.transactions.batch",
"finance-storage.transactions.batch.execute",
"configuration.entries.collection.get"
]
},
Expand Down Expand Up @@ -608,7 +608,7 @@
"modulePermissions": [
"finance-storage.funds.collection.get",
"finance-storage.funds.item.get",
"finance-storage.transactions.batch"
"finance-storage.transactions.batch.execute"
]
},
{
Expand All @@ -618,7 +618,7 @@
"modulePermissions": [
"finance-storage.funds.collection.get",
"finance-storage.funds.item.get",
"finance-storage.transactions.batch"
"finance-storage.transactions.batch.execute"
]
},
{
Expand All @@ -643,7 +643,7 @@
"permissionsRequired": ["finance.release-encumbrance.item.post"],
"modulePermissions": [
"finance-storage.transactions.item.get",
"finance-storage.transactions.batch"
"finance-storage.transactions.batch.execute"
]
},
{
Expand All @@ -652,16 +652,16 @@
"permissionsRequired": ["finance.unrelease-encumbrance.item.post"],
"modulePermissions": [
"finance-storage.transactions.item.get",
"finance-storage.transactions.batch"
"finance-storage.transactions.batch.execute"
]
},
{
"methods": ["POST"],
"pathPattern": "/finance/transactions/batch-all-or-nothing",
"permissionsRequired": ["finance.transactions.batch"],
"permissionsRequired": ["finance.transactions.batch.execute"],
"modulePermissions": [
"finance-storage.funds.collection.get",
"finance-storage.transactions.batch",
"finance-storage.transactions.batch.execute",
"finance-storage.transactions.collection.get"
]
}
Expand Down Expand Up @@ -1217,9 +1217,10 @@
"description": "Get an existing transaction"
},
{
"permissionName": "finance.transactions.batch",
"permissionName": "finance.transactions.batch.execute",
"displayName": "Finances - Batch process transactions",
"description": "Process transactions in an all-or-nothing batch operation"
"description": "Process transactions in an all-or-nothing batch operation",
"replaces": ["finance.transactions.batch"]
},
{
"permissionName" : "finance.transactions.all",
Expand All @@ -1232,7 +1233,7 @@
"finance.transactions.item.get",
"finance.release-encumbrance.item.post",
"finance.unrelease-encumbrance.item.post",
"finance.transactions.batch"
"finance.transactions.batch.execute"
]
},
{
Expand Down

0 comments on commit d10878e

Please sign in to comment.