Selected fields for admins only
-
Hi there
I’d like to know is it possible to achieve with Types something like this:
let’s say I create a group of 10 fields at a custom post type and I give access to the post so that users with defined user role (non-admin) may access/edit it.
I’d like to restrict access to 1-2 fields from the set so that only admin may see/edit them within the custom post type. The user would see/access only the rest of fields.The purpose is to give admins a safe way to configure ie. contact form shortcode for a defined user/post so that once it’s set, the user cannot view/change the shortcode etc. But the inserted shortcode would work fine for that user/post at frontend.
As for now I excluded the editor field from Edit Custom Post Type / Display Sections so that users cannot view/use it. Then I temporarily enable it to insert shortcodes I don’t want to give access to. Once saved, and the editor field is disabled again, it works all fine. The user cannot view the editor field and the shortcodes work all fine. But it is complicated in use, and – the most important – there is always a possibility that the users would try to edit the custom post type with Types’ fields at the same moment I enabled the editor field and see the restricted fields by a chance. And this allows to restrict access to 1 field only.
Is there any easier way?
The topic ‘Selected fields for admins only’ is closed to new replies.