I often find it useful to limit who can alter fields through the comment alter functionality vs who must do it through the node edit form. Field permissions can only be used to control who can alter nodes through comments if both methods are controlled the same.
Patch to follow.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | add_comment_alter_permission-2836183-2.patch | 1.26 KB | WorldFallz |
Comments
Comment #2
WorldFallz commentedComment #3
boobaaI like both the idea and the implementation – could you please also add tests?
Comment #4
nickonom commentedWe have a use case when the regular users are ok to see what has been altered by editors, but are not allowed to alter fields by themselves.
Comment #5
nickonom commentedSince 7.x-1.0-rc4+34-dev lot's of wonderful changes were done, so with the latest git-pulled dev branch the following code in a custom module works just as desired:
so I believe there is no need to add permissions anymore.
Comment #6
bluegeek9 commentedDrupal 7 is End of Life. We recommend upgrading to a supported version of Drupal.