Closed (fixed)
Project:
Domain Admin
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jul 2010 at 15:51 UTC
Updated:
19 Aug 2010 at 16:30 UTC
I have 2 roles: Editor and DomainAdmin.
DomainAdmin has most domain_admin permissions and Editor only "update own unpublished nodes on domain" and "view own unpublished nodes on domain".
When Editor creates nodes they are marked as "Submitted by Anonymous" and for DomainAdmin they are linked to the author as expected.
When I disable domain_admin the problem disappears.
Can someone reproduce this behaviour?
Comments
Comment #1
brt commentedI urgently need a solution to this but can't find where the problem originates from.
Unrelated but very annoying:
My netbeans-debugging (6.9) fails inside drupal modules although it works fine elsewhere :-(
Any hints??
Comment #2
nirbhasa commentedIm testing some scleanups at the moment that might solve this. Cant help you with your netbeans issue unfortunately :)
Comment #3
brt commentedThanks. I just solved the netbeans problem and can now try to do some more debugging. I had a symbolic link for a path in the netbeans project configuration, netbeans seems to have problems with this.
Comment #4
brt commentedI have made some progress on this. Sorry if the description is a bit fuzzy.
If a user does not have permission 'change author and creation date of nodes on domain' nor is a "delegated user" the $node->uid ends up being 0.
This leads to the problem described here. Nodes are saved as belonging to "Guest" and the author can not edit his own node although he should be able to.
If the user can "edit own xxx content" the content he creates should not have $node->uid = 0.
domain_admin_nodeapi() on line 308.
Comment #5
nirbhasa commentedYes, that whole nodeapi function is a bit funny, I am cleaning it up as part of #859296: Turn references to Book Page Access module into a generic hook which should solve this issue. Mightnt be for a little while unfortunately, now is a little busy for me
Comment #6
nirbhasa commentedFix committed to latest dev, seems to work for me, can you test it?
Comment #7
brt commentedIt works for me.
Comment #8
nirbhasa commentedOk, marking issue as fixed. Thanks!