From 3e44c1de803bb67e931b07213f22019bdac591eb 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 cf6642b4189..e763a355bb2 100644 --- a/app/config/permissions/definition.yml +++ b/app/config/permissions/definition.yml @@ -99,3 +99,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 ca91572a890..47f10d59d75 100644 --- a/app/config/permissions/role-finance.yml +++ b/app/config/permissions/role-finance.yml @@ -74,3 +74,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 d287e76219b..f3bab25c90a 100644 --- a/app/config/permissions/role-manager.yml +++ b/app/config/permissions/role-manager.yml @@ -74,3 +74,6 @@ organization: payment_requests: view: true create: true +payments: + view: true + create: true diff --git a/schema.graphql b/schema.graphql index 198b3c7a3a0..07745159d01 100644 --- a/schema.graphql +++ b/schema.graphql @@ -6145,6 +6145,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 1387d9de8c7..a8ff17aea8e 100644 --- a/schema.json +++ b/schema.json @@ -30652,6 +30652,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,