Hi

I try to set the module up in a way that each authenticated user who has rights to create nodes of the child node type can create child nodes for any node of the parent node type. I cannot get it work, only admins seem to have this right. Authenticated users can only publish child nodes for own nodes of the parent node type not for nodes which other users have published.

Is this intended behaviour or is there any possibility to get it work.
thanks carsonh

Comments

Ehud’s picture

Version: 5.x-2.2 » 5.x-2.3

Hi,

I have this same problem in 5.x-2.3 version. Authenticated users cannot add child through the link operations, which are not displayed. If I give them permission to edit the parent node type then it is solved. But this permission cannot be granted in my site.

Thanks in advance for the support.

Ehud’s picture

Hi again,

I managed to find the place in code to remove this demand for edit permission on the parent node.

line 1610 in relativity.module file should be updated from this:
if ($may_create && node_access('update', $parent)) {
to this:
if ($may_create) {

thats all.

a few lines further on there is another if clause with the same check. it refers to attaching existing node. you might want to remove that too.

This change should probably need a second eye to look upon...

toddchris’s picture

I'm also interested in this, however it seems that on my site even administrators can't link parents and child unless they authored the nodes.

I have created a conference session proposal system where the parent is the proposal and then the children are presenters. If I go to a parent that I didn't create and try to add additional children, it tells me there are no children to add, even though I know there are. BTW I have a many to many relationship between parent and child.

Is this something that can be added to the module? something like a check box to allow non-authors to create relationships? I always hate changing code for obvious reasons.

Thanks for a great module though, it's been working really well. You can see examples as www. mynlada.org.

tc

Village Internet’s picture

relativity.module,v 1.46.2.5 2008/07/11

the change is made to line 1207

if (node_access('create', $type) && node_access('update', $parent))

is changed to:

if (node_access('create', $type))

troym559’s picture

Hello, I am having the same problem using version 5.x-2.4. I tried looking for the above mentioned code "if (node_access('create', $type) && node_access('update', $parent))" to replace with "if (node_access('create', $type))" but I cant seem to find the code to replace. Has it been changed in version 5.x-2.4?

Please help.

troym559’s picture

Hello all, I hate to be that annoying guy that wont go away. But I really need help with this. I have been working on this site for almost 2 years and I am so close to being finished. If I could just get this one thing to work.

Please anyone.

troym559’s picture

I got this to work using workflowNG. I simply made a new Link operations feature with workflowNG and made it visible for the role that i want to be able to create child nodes. Users with permission to create child nodes are now able to do so regardless of there edit permisions for the parent node. WOW, i'm so happy now. :)

DYNE540’s picture

Hi Troym559,

I too am having difficulty with node relativity and another module called competition. Are you using the competition module? if so, have you got it fully working? Then what were your settings?

happy holidays,
VVE

troym559’s picture

Hello DYNE540,

No im not using the competition module. I was just having the problem with the permission settings required to get the link operations feature of node reletivity to show up. Thes requirments conflicted with my required site settings. I was able to overcome this conflict by creating a message including links to add child nodes show up on the parent node via WorkFlowNG module. Now it works great and my users can add child nodes without having permission to edit the parent node. I hope this helps and good luck with your site.

woomeans’s picture

Version: 5.x-2.3 » 6.x-1.2

Hello troym559,

Thank you for your solutions very much!The Node Relativity is a very necessary module for me,but I got the same issue with you。
I think it would be great if developer give a option on this:allow any Authenticated users to add children nodes or not。