I'm still fiddling with the workflow "prevent user from unpublishing nodes of other authors". I followed the suggestion regarding using rules_forms and implemented the following as a test case:
On (page_node_form is being built):
If published (options[status]=1) then
(disable form_element) and (show message).
Now I've got the strange effect that for the same page upon edit, I get
options[status]=1 = TRUE for the admin (correct) but a FALSE for the exact same evaluation for my user, although the checkbox "published" is correctly checked in the display.
If I check "Negate", the rule debug for the user says it works and it would set the "disable form element" but it does not have this effect in the GUI. Whereas for the admin, the rule works correctly once more, keeping the form element enabled.
Any suggestions to what my problem may be? I checked the issues but didn't find anything. (I really love the rules module, thanks a lot for supporting it!)
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | publish_workflow_admin.png | 11.2 KB | itsnotme |
| #1 | publish_workflow_user.png | 17.2 KB | itsnotme |
Comments
Comment #1
itsnotme commentedOne month later, I still have this problem :)
I tried some permutation of "options[status]" (like node_options[status], since I wasn't sure, but still no change.
I attached two screenshots - this is exactly the same node but for admin1 the condition is true and for the user, it's false.
Comment #2
YK85 commentedsubscribing
Comment #3
mitchell commentedClosing older issues to make the issue queue easier to navigate. If you still need assistance, please try the latest versions, read through the documentation handbooks, and search for other other issues with relevant responses. This will more than likely give you an answer to your question, or you can always open another issue. If you have any further help to offer people who may find this issue, please add it even though it is closed or add this info to the documentation handbook. Thank you.