When I add an editor to a node, he is added correctly and can edit the node. However, after he saves changes, he and any other editors and viewers for that node are removed from their respective lists. If I edit the node as admin, the editor list stays intact.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 372138_coherent_access.diff | 5.23 KB | MGN |
Comments
Comment #1
MGN commentedyes. I can verify that this is happening. I think I understand why, and will try to submit a patch soon.
Comment #2
MGN commentedNote that it works correctly when you have 'trust editors' checked.
Comment #3
MGN commentedThe problem is in coherent_access_shared_editing(). When 'trust editors' is not checked, the $private, $editors, and $viewers variables are not preserved when the editor saves the nodes. I fixed this by carrying these values through on form type 'value' elements. The patch is against the latest 6.x-1.x-dev version.
Comment #4
Drumble commentedThanks MGN!
Comment #5
MGN commented@Drumble, have you had a chance to review the patch? Did it fix the problem?
Comment #6
Jabzebedwa commentedMGN,
I don't know where "coherent_access_shared_editing()" is, nor do I see a check box anywhere for "trust editors". If you'll be a little more informative with your instruction I'll be happy to test your patch and give you some feedback on it. I'm having this exact problem. Where exactly do I apply the patch?
Thanks,
Ben
Comment #7
evoltech commented@Jabzebedwa, @MGN is referring to a function called 'coherent_access_shared_editing' in coherent_access.module. This is the function that was patched in #3. @MGN is referring to the global 'Trust editors' setting in admin/settings/coherent-access.
I have tested this patch and confirmed it provides a bug fix to this issue.
Comment #8
jgraham commentedCommited, sorry for the long delay thanks MGN and evoltech.