@stamhoofd/backend 2.28.0 → 2.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stamhoofd/backend",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.29.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"@simonbackx/simple-encoding": "2.15.1",
|
|
37
37
|
"@simonbackx/simple-endpoints": "1.14.0",
|
|
38
38
|
"@simonbackx/simple-logging": "^1.0.1",
|
|
39
|
-
"@stamhoofd/backend-i18n": "2.
|
|
40
|
-
"@stamhoofd/backend-middleware": "2.
|
|
41
|
-
"@stamhoofd/email": "2.
|
|
42
|
-
"@stamhoofd/models": "2.
|
|
43
|
-
"@stamhoofd/queues": "2.
|
|
44
|
-
"@stamhoofd/sql": "2.
|
|
45
|
-
"@stamhoofd/structures": "2.
|
|
46
|
-
"@stamhoofd/utility": "2.
|
|
39
|
+
"@stamhoofd/backend-i18n": "2.29.0",
|
|
40
|
+
"@stamhoofd/backend-middleware": "2.29.0",
|
|
41
|
+
"@stamhoofd/email": "2.29.0",
|
|
42
|
+
"@stamhoofd/models": "2.29.0",
|
|
43
|
+
"@stamhoofd/queues": "2.29.0",
|
|
44
|
+
"@stamhoofd/sql": "2.29.0",
|
|
45
|
+
"@stamhoofd/structures": "2.29.0",
|
|
46
|
+
"@stamhoofd/utility": "2.29.0",
|
|
47
47
|
"archiver": "^7.0.1",
|
|
48
48
|
"aws-sdk": "^2.885.0",
|
|
49
49
|
"axios": "1.6.8",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"postmark": "4.0.2",
|
|
61
61
|
"stripe": "^16.6.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "0579111a61319f41f3789c570e9f494a648bd07c"
|
|
64
64
|
}
|
|
@@ -121,7 +121,7 @@ export class RegisterMembersEndpoint extends Endpoint<Params, Query, Body, Respo
|
|
|
121
121
|
throw new SimpleError({
|
|
122
122
|
code: "forbidden",
|
|
123
123
|
message: "No permission to register this member",
|
|
124
|
-
human: 'Je hebt niet de juiste toegangsrechten om dit lid in te schrijven.',
|
|
124
|
+
human: 'Je hebt niet de juiste toegangsrechten om dit lid in te schrijven. Je kan enkel leden inschrijven als je minstens bewerkrechten hebt voor dat lid.',
|
|
125
125
|
statusCode: 403
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -271,9 +271,14 @@ export class AdminPermissionChecker {
|
|
|
271
271
|
return true;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
+
if (registration.deactivatedAt || !registration.registeredAt) {
|
|
275
|
+
// No full access: cannot access deactivated registrations
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
|
|
274
279
|
const allGroups = await this.getOrganizationGroups(registration.organizationId)
|
|
275
280
|
const group = allGroups.find(g => g.id === registration.groupId)
|
|
276
|
-
if (!group) {
|
|
281
|
+
if (!group || group.deletedAt) {
|
|
277
282
|
return false;
|
|
278
283
|
}
|
|
279
284
|
|