@budibase/worker 2.4.37 → 2.4.38

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.4.37",
4
+ "version": "2.4.38",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "author": "Budibase",
37
37
  "license": "GPL-3.0",
38
38
  "dependencies": {
39
- "@budibase/backend-core": "^2.4.37",
40
- "@budibase/pro": "2.4.36",
41
- "@budibase/string-templates": "^2.4.37",
42
- "@budibase/types": "^2.4.37",
39
+ "@budibase/backend-core": "^2.4.38",
40
+ "@budibase/pro": "2.4.37",
41
+ "@budibase/string-templates": "^2.4.38",
42
+ "@budibase/types": "^2.4.38",
43
43
  "@koa/router": "8.0.8",
44
44
  "@sentry/node": "6.17.7",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
@@ -101,5 +101,5 @@
101
101
  "typescript": "4.7.3",
102
102
  "update-dotenv": "1.1.1"
103
103
  },
104
- "gitHead": "7644199c2c0ba7bfce04e0b2bb68c530b1ddc777"
104
+ "gitHead": "39c732f4384c9a3d6095803b23443fcd8857329f"
105
105
  }
@@ -5,7 +5,7 @@ export async function destroy(ctx: UserCtx) {
5
5
  const user = ctx.user!
6
6
  const tenantId = ctx.params.tenantId
7
7
 
8
- if (tenantId !== user.tenantId) {
8
+ if (!ctx.internal && tenantId !== user.tenantId) {
9
9
  ctx.throw(403, "Tenant ID does not match current user")
10
10
  }
11
11