From 207c6f73ef853a8efb6e982b02a1bb3e2ea1920d Mon Sep 17 00:00:00 2001 From: Ivan Novosad Date: Fri, 6 Dec 2024 13:31:48 +0100 Subject: [PATCH] feat(payments): Add payment permissions --- app/config/permissions/definition.yml | 3 +++ app/config/permissions/role-finance.yml | 3 +++ app/config/permissions/role-manager.yml | 3 +++ schema.graphql | 2 ++ schema.json | 36 +++++++++++++++++++++++++ 5 files changed, 47 insertions(+) diff --git a/app/config/permissions/definition.yml b/app/config/permissions/definition.yml index 01b49a05c80e..437682390d9f 100644 --- a/app/config/permissions/definition.yml +++ b/app/config/permissions/definition.yml @@ -94,3 +94,6 @@ organization: payment_requests: view: true create: +payments: + view: true + create: diff --git a/app/config/permissions/role-finance.yml b/app/config/permissions/role-finance.yml index bdd324e8384e..2df8e6c99265 100644 --- a/app/config/permissions/role-finance.yml +++ b/app/config/permissions/role-finance.yml @@ -70,3 +70,6 @@ organization: payment_requests: view: true create: true +payments: + view: true + create: true diff --git a/app/config/permissions/role-manager.yml b/app/config/permissions/role-manager.yml index 2f7638202df2..16ba82c02ec1 100644 --- a/app/config/permissions/role-manager.yml +++ b/app/config/permissions/role-manager.yml @@ -70,3 +70,6 @@ organization: payment_requests: view: true create: true +payments: + view: true + create: true diff --git a/schema.graphql b/schema.graphql index 49c1c169f5e9..e91408a416dd 100644 --- a/schema.graphql +++ b/schema.graphql @@ -6104,6 +6104,8 @@ type Permissions { organizationView: Boolean! paymentRequestsCreate: Boolean! paymentRequestsView: Boolean! + paymentsCreate: Boolean! + paymentsView: Boolean! plansCreate: Boolean! plansDelete: Boolean! plansUpdate: Boolean! diff --git a/schema.json b/schema.json index c5329f7a3a0a..24b62bffe5ff 100644 --- a/schema.json +++ b/schema.json @@ -30307,6 +30307,42 @@ ] }, + { + "name": "paymentsCreate", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null, + "args": [ + + ] + }, + { + "name": "paymentsView", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null, + "args": [ + + ] + }, { "name": "plansCreate", "description": null,