Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By ma-user on
I want to restrict access (view/edit/delete) of specific fields, per role.
admin | RoleA | RoleB | RoleC | |
---|---|---|---|---|
Restrict View of Field: Name | ✔ | |||
Restrict Edit of Field: Name | ✔ | |||
Restrict Delete of Field: Name | ✔ | |||
Restrict View of Field: Account | ✔ | |||
Restrict Edit of Field: Account | ✔ | |||
Restrict Delete of Field: Account | ✔ |
I found this module: Field Permissions, but every time I create a new Role I have to go to each field and update it to give permissions to the new Role. So it would be more helpful if there was any module that restrict specific fields for specific Roles. Do you have any ideas?
Comments
Question
Does any one know any module that can help me?
=-=
Fields permissions is the only module available at the fields level. If you want to reverse the logic you will need to write your own.
OG
Have a look at organic groups , with it you can have a per og field access. Depending on your use case it can be an option.
https://www.drupal.org/project/og
Sorry, misread requirements.
Sorry, misread requirements.