@contentful/field-editor-reference 4.2.2 → 4.2.3
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 +6 -0
- package/dist/field-editor-reference.cjs.development.js +6 -2
- package/dist/field-editor-reference.cjs.development.js.map +1 -1
- package/dist/field-editor-reference.cjs.production.min.js +1 -1
- package/dist/field-editor-reference.cjs.production.min.js.map +1 -1
- package/dist/field-editor-reference.esm.js +6 -2
- package/dist/field-editor-reference.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -2301,7 +2301,8 @@ function useEditorPermissions(props) {
|
|
|
2301
2301
|
|
|
2302
2302
|
function _checkLinkAccess() {
|
|
2303
2303
|
_checkLinkAccess = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2() {
|
|
2304
|
-
var canRead;
|
|
2304
|
+
var canRead, _canRead;
|
|
2305
|
+
|
|
2305
2306
|
return runtime_1.wrap(function _callee2$(_context2) {
|
|
2306
2307
|
while (1) {
|
|
2307
2308
|
switch (_context2.prev = _context2.next) {
|
|
@@ -2330,7 +2331,10 @@ function useEditorPermissions(props) {
|
|
|
2330
2331
|
|
|
2331
2332
|
case 8:
|
|
2332
2333
|
if (entityType === 'Entry') {
|
|
2333
|
-
|
|
2334
|
+
// Hardcoded `true` value following https://contentful.atlassian.net/browse/DANTE-486
|
|
2335
|
+
// TODO: refine permissions check in order to account for tags in rules
|
|
2336
|
+
_canRead = readableContentTypes.length > 0 || true;
|
|
2337
|
+
setCanLinkEntity(_canRead);
|
|
2334
2338
|
}
|
|
2335
2339
|
|
|
2336
2340
|
case 9:
|