@teamkeel/functions-runtime 0.365.13 → 0.365.15-prerelease1
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 +1 -1
- package/src/tryExecuteJob.js +1 -3
- package/pnpm-lock.yaml +0 -1524
package/package.json
CHANGED
package/src/tryExecuteJob.js
CHANGED
|
@@ -12,9 +12,7 @@ function tryExecuteJob({ db, permitted, actionType, request }, cb) {
|
|
|
12
12
|
return withDatabase(db, actionType, async ({ transaction }) => {
|
|
13
13
|
await cb();
|
|
14
14
|
|
|
15
|
-
//
|
|
16
|
-
// we need to check that the final state is permitted or unpermitted. if it's not, then it means that the user has taken no explicit action to permit/deny
|
|
17
|
-
// and therefore we default to checking the permissions defined in the schema automatically.
|
|
15
|
+
// we need to check that the final state is unpermitted. if it's not, then it means that the user has taken no explicit action to permit/deny
|
|
18
16
|
if (getPermissionState() === PERMISSION_STATE.UNPERMITTED) {
|
|
19
17
|
throw new PermissionError(`Not permitted to access ${request.method}`);
|
|
20
18
|
}
|