agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.4k stars 523 forks source link

Collection Fields with limited access still show field name in API #1387

Open pixelkarma opened 3 years ago

pixelkarma commented 3 years ago

/api/collections/get/Pages

If 'title' has permissions, the data does not show (as expected), but the field name still shows. This could cause confusion for developers or code that uses the fields list to access the data.

Screen Shot 2021-01-04 at 5 38 58 PM

{ "fields": { "title": { "name": "title", "type": "text", "localize": false, "options": { "slug": true } } } }