I can't find much information on the Node Ownership module, I have installed it and tried to claim ownership of a page with another user. The emails get sent but the page is still owned by admin so the staff member is not able to update their page.

I have a number of staff pages (content type staff) that were created by admin and I want to give permission for individual staff members to update their own pages.
The permissions are set so that staff members can create staff content and update their own staff content but they do not get the edit tab for their claimed staff pages claimed using this module.

Comments

vyasamit2007’s picture

Have you tried giving permission for that particular user role to 'edit own pages/content' from user permissions?

jward50’s picture

Hi
Yes the user has permission to create and edit their own staff content which they can do and they are able to claim the staff content but when you list conent is is still owned by admin so the user is not able to edit the node, have you got any other ideas as to what may be going wrong?
Many thanks
Julie

jward50’s picture

I have checked the information in the tables and it is updating the nodeownership table correctly but not the node table. If I manually change the UID on the node from 1 to 6 the user can then edit that node. Do you have this module working correctly?

jward50’s picture

Hi, is there anything further I am missing as I am still unable to get this to work???

goron’s picture

Title: Claim Node » No Edit permissions are given after claim
Component: Miscellaneous » Code
Category: support » bug
Priority: Normal » Major

This is also not working for me, so I'm marking this as a major bug (since it impacts the main functionality of the module).

I install the module, give authenticated users permission to claim content and edit own content, use a test user to claim a node, use admin user to approve. The test user still gets no node edit access for that node.

goron’s picture

Priority: Major » Critical

this is critical, in fact

arav6’s picture

This was working, i remember, but all of a sudden from today, it stopped working. Every thing looks good, up to receiving email from admin, but could not see the edit options for the claimed content.

SomethingOn’s picture

These comments are in the code, but there is no db_update() calls to actually execute:

// $query = "update {node} set uid = %d where nid = %d";
// db_query($query, $uid, $nid);

I added the following code at line 419 and it changed the node:uid to the user who sent the claim request:

$num_updated = db_update('node')
      ->fields(array(
        'uid' => $uid,
      ))
      ->condition('nid', $nid, '=')
      ->execute();
gauravkumar87’s picture

Assigned: Unassigned » gauravkumar87
gauravkumar87’s picture

Assigned: gauravkumar87 » yogeshchaugule8
Status: Active » Needs review

Fix committed in the latest dev snapshot.

Gaurav

yogeshchaugule8’s picture

Status: Needs review » Closed (fixed)

Works as expected on 7.x.1.x-dev branch