apostrophe icon indicating copy to clipboard operation
apostrophe copied to clipboard

How to hide certain fields/groups to admin only?

Open romans127 opened this issue 10 years ago • 2 comments

Is it possible to hide a field and/or an entire group from non-admin users. If I have the group of fields "Admin" or "Settings" I would like to hide the group altogether.

romans127 avatar Dec 15 '15 20:12 romans127

Hey @rwatts, if you look at apostrophe-users, the profileFields and applyFields both use the schema subset feature to provide specific routes for editing part of an object. That's probably the best code example of this at the moment.

Currently there isn't a way of doing this through configuration, but we'll add this to the backlog to consider for the future.

jth- avatar Feb 01 '16 15:02 jth-

This is now a feature. You can set permission: 'admin' on any schema field. Other permissions work too.

boutell avatar Sep 03 '16 20:09 boutell