ponzu-cms / ponzu

Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
https://docs.ponzu-cms.org
BSD 3-Clause "New" or "Revised" License
5.67k stars 387 forks source link

Hide content from admin #336

Closed davidjije closed 4 years ago

davidjije commented 4 years ago

Hi, via Ponzu CMS is it possible to hide content from admin but to leave API routes (get, create, update)?

nilslice commented 4 years ago

@davidjije - currently no. Just to make sure I understand your use case, you would want to define a set of admin users by their email to "reject" access to content types in the admin section?

davidjije commented 4 years ago

Nope. I just want that none of the admins could see content from Ponzu cms admin panel. I want to make content "visible" only by API routes.

nilslice commented 4 years ago

You can start the ponzu process in API-only mode.

Check the output of ponzu -h I believe, and look for the run or start command info.

davidjije commented 4 years ago

Sorry. I explained badly. Imagine I have 2 content types (x and y). I want x to be visible for admin in the panel and also from API routes. But I want to hide y content from admin and make visible only for API routes.

nilslice commented 4 years ago

I see -- no, that's not possible. Thanks for clarifying!

davidjije commented 4 years ago

Sad. Ok, Thank you