mirror of
https://github.com/strapi/strapi.git
synced 2025-08-12 10:48:12 +00:00
Merge pull request #11650 from strapi/v4/remove-relation-private-cts
Prevent relation to api token and locale
This commit is contained in:
commit
08d27c0ea5
@ -19,7 +19,11 @@ const getRestrictRelationsTo = (contentType = {}) => {
|
|||||||
return ['oneWay', 'manyWay'];
|
return ['oneWay', 'manyWay'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (uid.startsWith(coreUids.PREFIX) || uid === pluginsUids.UPLOAD_FILE) {
|
if (
|
||||||
|
uid.startsWith(coreUids.PREFIX) ||
|
||||||
|
uid === pluginsUids.UPLOAD_FILE ||
|
||||||
|
!isContentTypeVisible(contentType)
|
||||||
|
) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,9 @@ module.exports = {
|
|||||||
'content-manager': {
|
'content-manager': {
|
||||||
visible: false,
|
visible: false,
|
||||||
},
|
},
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
attributes: {
|
attributes: {
|
||||||
action: {
|
action: {
|
||||||
|
@ -13,6 +13,9 @@ module.exports = {
|
|||||||
'content-manager': {
|
'content-manager': {
|
||||||
visible: false,
|
visible: false,
|
||||||
},
|
},
|
||||||
|
'content-type-builder': {
|
||||||
|
visible: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
attributes: {
|
attributes: {
|
||||||
name: {
|
name: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user