15237 Commits

Author SHA1 Message Date
Moriz Wahl
a1d12c3c68 do not pass USER role by update role. Simplify logic 2023-07-24 15:40:05 +02:00
Moriz Wahl
d82a994eeb remove isAdmin from guards, simplify logic 2023-07-24 14:58:43 +02:00
Moriz Wahl
fdf40a6ec7 remove flush promises 2023-07-24 14:46:55 +02:00
elweyn
03ae59627d Fix emit and role as uppercase 2023-07-24 10:00:15 +02:00
elweyn
19ba385e46 Test UserQuery to get jest line check. 2023-07-23 18:58:12 +02:00
elweyn
557ffed4ef Add flushPromises. 2023-07-23 18:57:44 +02:00
elweyn
e0b84b52a0 Add moderator role selection of roles. 2023-07-23 17:36:21 +02:00
elweyn
adae41d2d0 Add new roles to mock objects. 2023-07-23 17:35:45 +02:00
elweyn
8934e9205b Change of roles added to CreationConfirm. 2023-07-23 16:43:26 +02:00
elweyn
037178bbe1 Add moderator object. 2023-07-23 16:42:32 +02:00
elweyn
06033775e7 Change user query to get roles array & setUserRole mutation. 2023-07-23 16:42:03 +02:00
elweyn
489a043aa7 Refactor backend findUsers query to find user roles. 2023-07-23 16:09:58 +02:00
elweyn
9f00b4e73a Get roles property of verifyLogin query. 2023-07-23 11:11:13 +02:00
elweyn
1a4c42ea26 Add roles check to the guards verifyLogin. 2023-07-23 11:10:12 +02:00
elweyn
bed2b86ea5 Test guards with roles array for verfiyLogin. 2023-07-23 11:09:39 +02:00
Claus-Peter Huebner
82eb0db086 correct column name 2023-07-21 20:40:48 +02:00
Claus-Peter Huebner
80cd549359 reduce dltconnectorclient from writing in database 2023-07-21 19:50:47 +02:00
Claus-Peter Huebner
69a33c7ba2 add trigger to send tx to dlt-connector after tx-creations 2023-07-21 19:50:00 +02:00
Claus-Peter Huebner
f1a31c8156 add util class for async sending Tx to dlt-connector 2023-07-21 19:49:07 +02:00
Claus-Peter Huebner
c46c7df8ff overwork dlt_transactions table and entity 2023-07-21 19:47:47 +02:00
Claus-Peter Huebner
b0a6d83f61 add dlt-connector config settings 2023-07-20 23:40:01 +02:00
Claus-Peter Huebner
95b25b3d3b add Darios TestClient 2023-07-20 23:32:10 +02:00
Claus-Peter Huebner
d91150c08c 3rd dlt-trigger in TransactionResolver, but as TODO-comment 2023-07-20 23:22:25 +02:00
Claus-Peter Huebner
4c075766cf 2nd dlt-trigger in TransactionLinkResolver, but as TODO-comment 2023-07-20 23:18:45 +02:00
Claus-Peter Huebner
cbd1c36604 1st dlt trigger in ContributionResolver but as TODO-comment 2023-07-20 23:15:26 +02:00
Claus-Peter Huebner
f13a8becbf add Darios DltConnectorClient 2023-07-20 23:06:42 +02:00
Claus-Peter Huebner
22497e38fb add dlt_transactions table 2023-07-20 22:26:56 +02:00
clauspeterhuebner
8b2d07c0af
Merge pull request #3074 from gradido/3030-feature-role-administration-backend
feat(backend): 3030 feature role administration backend
2023-07-19 01:03:27 +02:00
Claus-Peter Huebner
4b04f81f02 add default value on field createdAt like it is in migration 2023-07-18 16:32:59 +02:00
Claus-Peter Huebner
0e8ef23361 Merge branch '3030-feature-role-administration-backend' of github.com:gradido/gradido into 3030-feature-role-administration-backend 2023-07-18 16:06:57 +02:00
Claus-Peter Huebner
1b853c44e4 set correct rolename for ROLE_UNAUTHORIZED 2023-07-18 16:06:42 +02:00
Moriz Wahl
2d1bf3c510 add roles to store 2023-07-18 14:10:42 +02:00
Moriz Wahl
ef16fd8e31 add frontend part for roles 2023-07-18 13:53:18 +02:00
Moriz Wahl
802b7cc3dc Merge branch '3030-feature-role-administration-backend' of github.com:gradido/gradido into 3030-feature-role-administration-backend 2023-07-18 13:43:10 +02:00
mahula
322cf794a9 add contribution by link information to locaes 2023-07-17 12:15:41 +02:00
Claus-Peter Huebner
36e410a263 enum as null | undefined 2023-07-14 20:10:41 +02:00
Claus-Peter Huebner
ca82341592 Merge remote-tracking branch 'origin/master' into 3030-feature-role-administration-backend 2023-07-14 20:08:36 +02:00
Claus-Peter Huebner
abc7128e5f enum solution and graphql-schema-validation 2023-07-14 20:08:06 +02:00
Moriz Wahl
ff08e410e4 Merge branch '3030-feature-role-administration-backend' of github.com:gradido/gradido into 3030-feature-role-administration-backend 2023-07-13 21:14:50 +02:00
Claus-Peter Huebner
03f60fa4d4 Merge branch '3030-feature-role-administration-backend' of
github.com:gradido/gradido into 3030-feature-role-administration-backend
2023-07-13 21:14:27 +02:00
Claus-Peter Huebner
46151006b9 pure Verzweiflung... 2023-07-13 21:10:56 +02:00
einhornimmond
78a5910760
Merge pull request #3132 from gradido/iota4_extra_module_pack_transaction
feat(other): iota-tangle-connector sending transaction
2023-07-13 16:33:41 +02:00
Moriz Wahl
736c9228a6 Merge branch '3030-feature-role-administration-backend' of github.com:gradido/gradido into 3030-feature-role-administration-backend 2023-07-13 14:39:05 +02:00
clauspeterhuebner
f00c5cd9cb
Update backend/src/graphql/resolver/UserResolver.test.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2023-07-13 13:36:12 +02:00
clauspeterhuebner
1456d4a74a
Update backend/src/graphql/resolver/UserResolver.test.ts
Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2023-07-13 13:34:33 +02:00
einhorn_b
000b9c1492 fix spelling 2023-07-13 08:37:39 +02:00
clauspeterhuebner
47bf651ba3
Update backend/src/graphql/directive/isAuthorized.ts
good hint, many thx...

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
2023-07-12 22:53:38 +02:00
einhorn_b
6bb34aa606 remove unneccessary import 2023-07-12 17:48:07 +02:00
einhorn_b
6b37022fc2 adjust according to Claus-Peters Suggestions 2023-07-12 17:33:06 +02:00
Claus-Peter Huebner
928091029a remove console.logs 2023-07-11 19:35:58 +02:00