mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +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']; | ||||
|   } | ||||
| 
 | ||||
|   if (uid.startsWith(coreUids.PREFIX) || uid === pluginsUids.UPLOAD_FILE) { | ||||
|   if ( | ||||
|     uid.startsWith(coreUids.PREFIX) || | ||||
|     uid === pluginsUids.UPLOAD_FILE || | ||||
|     !isContentTypeVisible(contentType) | ||||
|   ) { | ||||
|     return []; | ||||
|   } | ||||
| 
 | ||||
|  | ||||
| @ -13,6 +13,9 @@ module.exports = { | ||||
|     'content-manager': { | ||||
|       visible: false, | ||||
|     }, | ||||
|     'content-type-builder': { | ||||
|       visible: false, | ||||
|     }, | ||||
|   }, | ||||
|   attributes: { | ||||
|     action: { | ||||
|  | ||||
| @ -13,6 +13,9 @@ module.exports = { | ||||
|     'content-manager': { | ||||
|       visible: false, | ||||
|     }, | ||||
|     'content-type-builder': { | ||||
|       visible: false, | ||||
|     }, | ||||
|   }, | ||||
|   attributes: { | ||||
|     name: { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Alexandre BODIN
						Alexandre BODIN