Field-level permissions #8154
-
I'd like to be able to restrict certain fields to specific member groups. Example: A user profile that contains a bunch of fields for contact information and a field for a "commission rate." A user should be able to edit the fields for their contact information, but only a member of a "management" user group should be able to see/edit the "commission rate" field. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
An example of a comparable implementation is how ExpressionEngine allows the creation of different Form Layouts for different user groups. I think the method of setting access at the field level works better in my mind, but either approach would achieve the desire result. |
Beta Was this translation helpful? Give feedback.
-
@angrybrad I've written a plugin which should do what you're after (although we're a couple of years on!): https://plugins.craftcms.com/craft-fab-permissions I'd be happy to hear any feedback you might have! |
Beta Was this translation helpful? Give feedback.
-
This has been added for Craft 4, by way of conditional fields (and tabs) that support conditions on the logged-in user 🎉 (#10300) |
Beta Was this translation helpful? Give feedback.
This has been added for Craft 4, by way of conditional fields (and tabs) that support conditions on the logged-in user 🎉 (#10300)