@webiny/api-file-manager 5.20.0-beta.0 → 5.21.0-beta.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": "@webiny/api-file-manager",
3
- "version": "5.20.0-beta.0",
3
+ "version": "5.21.0-beta.0",
4
4
  "main": "index.js",
5
5
  "keywords": [
6
6
  "fm:base"
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@babel/runtime": "7.16.3",
22
22
  "@commodo/fields": "1.1.2-beta.20",
23
- "@webiny/api-i18n-content": "5.20.0-beta.0",
24
- "@webiny/api-security": "5.20.0-beta.0",
25
- "@webiny/api-tenancy": "5.20.0-beta.0",
26
- "@webiny/api-upgrade": "5.20.0-beta.0",
27
- "@webiny/error": "5.20.0-beta.0",
28
- "@webiny/handler": "5.20.0-beta.0",
29
- "@webiny/handler-client": "5.20.0-beta.0",
30
- "@webiny/handler-graphql": "5.20.0-beta.0",
31
- "@webiny/plugins": "5.20.0-beta.0",
32
- "@webiny/project-utils": "5.20.0-beta.0",
33
- "@webiny/validation": "5.20.0-beta.0",
23
+ "@webiny/api-i18n-content": "5.21.0-beta.0",
24
+ "@webiny/api-security": "5.21.0-beta.0",
25
+ "@webiny/api-tenancy": "5.21.0-beta.0",
26
+ "@webiny/api-upgrade": "5.21.0-beta.0",
27
+ "@webiny/error": "5.21.0-beta.0",
28
+ "@webiny/handler": "5.21.0-beta.0",
29
+ "@webiny/handler-client": "5.21.0-beta.0",
30
+ "@webiny/handler-graphql": "5.21.0-beta.0",
31
+ "@webiny/plugins": "5.21.0-beta.0",
32
+ "@webiny/project-utils": "5.21.0-beta.0",
33
+ "@webiny/validation": "5.21.0-beta.0",
34
34
  "aws-sdk": "2.1032.0",
35
35
  "commodo-fields-object": "1.0.6",
36
36
  "mdbid": "1.0.0",
@@ -44,9 +44,9 @@
44
44
  "@babel/plugin-transform-runtime": "^7.5.5",
45
45
  "@babel/preset-env": "^7.5.5",
46
46
  "@babel/preset-typescript": "^7.0.0",
47
- "@webiny/api-i18n": "^5.20.0-beta.0",
48
- "@webiny/api-i18n-ddb": "^5.20.0-beta.0",
49
- "@webiny/cli": "^5.20.0-beta.0",
47
+ "@webiny/api-i18n": "^5.21.0-beta.0",
48
+ "@webiny/api-i18n-ddb": "^5.21.0-beta.0",
49
+ "@webiny/cli": "^5.21.0-beta.0",
50
50
  "jest": "^26.6.3",
51
51
  "rimraf": "^3.0.2",
52
52
  "ttypescript": "^1.5.12",
@@ -71,5 +71,5 @@
71
71
  ]
72
72
  }
73
73
  },
74
- "gitHead": "2de02bc113e15e3ffa8e1d82deb9d27417787188"
74
+ "gitHead": "cad155812edbdd577a1cc858b41038fdd7a6d2d9"
75
75
  }
@@ -97,6 +97,12 @@ const systemCrudContextPlugin = new _ContextPlugin.ContextPlugin(async context =
97
97
  async install({
98
98
  srcPrefix
99
99
  }) {
100
+ const identity = context.security.getIdentity();
101
+
102
+ if (!identity) {
103
+ throw new _apiSecurity.NotAuthorizedError();
104
+ }
105
+
100
106
  const {
101
107
  fileManager
102
108
  } = context;