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.
i have a content type where i want to give all users read/write access to some nodes but only read access to some users for other nodes. is that possible? if not via CA, is there another way? i'd like to avoid creating another content type.
Comments
Comment #1
Magnus CreditAttribution: Magnus commentedMake a default setting for that content type. Then enable per node access control settings and choose what nodes you want only read access to.
If you have a field 'your_content_field' in your content type where you could choose e.g 'Allow for all' or 'Read only' then you could use the Rule module and set up a new rule to "revoke permission". In the Rule module:
1. Add a new rule "After saving new content".
2. Add a new condition "Field has value" "choose the field "your_content_field" and then choose "Read only".
3. Add a new action. "Revoke content permissions by role" (or "revoke access for a user" if you haven't set any roles).
4. Check the permissions that should be revoked and save.
Finished!
Comment #2
apadernoThe support request already got an answer; I am setting the report as fixed.