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

brt’s picture

I 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??

nirbhasa’s picture

Im testing some scleanups at the moment that might solve this. Cant help you with your netbeans issue unfortunately :)

brt’s picture

Thanks. 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.

brt’s picture

I 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.

nirbhasa’s picture

Yes, 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

nirbhasa’s picture

Status: Active » Needs review

Fix committed to latest dev, seems to work for me, can you test it?

brt’s picture

Status: Needs review » Reviewed & tested by the community

It works for me.

nirbhasa’s picture

Status: Reviewed & tested by the community » Fixed

Ok, marking issue as fixed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.