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.
Hi,
I am trying to setup a rule that will prevent "writers" (user role) to edit a node once the status field (field list) is set to "review" or "published". I have been re-searching the topic in the last 3 days and I haven't find a good solution.
Will the path (http://drupal.org/node/762450#comment-3755168) help me?
I also used the PHP filter as recommended here (http://drupal.stackexchange.com/questions/7783/how-to-discard-changes-in...) , but I think it is a little bit over killing.
Ideas?
Thank you,
Emil
Comments
Comment #1
emilorol CreditAttribution: emilorol commentedHi
In case someone else is looking for a similar solution here is what I did to solve the issue. I coded an small module to include the posted patch and by using a module I don't have to worry about patching the roles module every time there is an update.
MY-MODULE
Thank you,
Emil
Comment #2
TR CreditAttribution: TR commented#1 provides a solution. Or you can help out with #762450: Event: Content is going to be edited and get that committed if you don't want to use your own code like #1.
Comment #3
TR CreditAttribution: TR commented