@contentful/field-editor-reference 4.3.1 → 4.3.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.3.2](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.3.1...@contentful/field-editor-reference@4.3.2) (2022-04-29)
7
+
8
+ ### Bug Fixes
9
+
10
+ - use creatableContentTypes for create access check ([#1131](https://github.com/contentful/field-editors/issues/1131)) ([5fcf527](https://github.com/contentful/field-editors/commit/5fcf527609605140564eb0ba172c8877b882ebdc))
11
+
6
12
  ## [4.3.1](https://github.com/contentful/field-editors/compare/@contentful/field-editor-reference@4.3.0...@contentful/field-editor-reference@4.3.1) (2022-04-28)
7
13
 
8
14
  ### Bug Fixes
@@ -2294,7 +2294,7 @@ function useEditorPermissions(props) {
2294
2294
  if (entityType === 'Entry') {
2295
2295
  // Hardcoded `true` value following https://contentful.atlassian.net/browse/DANTE-486
2296
2296
  // TODO: refine permissions check in order to account for tags in rules
2297
- _canCreate = readableContentTypes.length > 0 || true;
2297
+ _canCreate = creatableContentTypes.length > 0 || true;
2298
2298
  setCanCreateEntity(_canCreate);
2299
2299
  }
2300
2300