node_access not set on submit

hyrcan - November 20, 2007 - 20:41
Project:Node Go To
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

In version 5.x-1.0 of Node Go To, the submitted node gets created, and the user is redirected as expected. However, the node_access data for that node is not created, thus any user other than user/1 will get an Access Denied message.

#1

neopulse - November 22, 2007 - 23:55

you just need to recreate the new node_access list, drupal implement a way to do that just through

administer/Content management/Post settings

press recreate and that all

#2

jdevoid - December 4, 2007 - 21:25

While that is one method of doing this I have found that if I add node_access_acquire_grants($node); to the nodegoto_nodeapi function just before the checks are made. This method works as long as you make sure that nodegoto_nodeapi is the last function invoked during a node_save.

The advantage to this solution over the other one listed for me is that I have lots of users who are creating content and because of that I do not want any time gap where they can not access the data they just created.

#3

fago - December 13, 2007 - 12:46

#4

introfini - December 26, 2007 - 02:46
Status:active» fixed

Hi,

It has been fixed in the new version.

Thanks,
introfini

#5

Anonymous - January 9, 2008 - 02:51
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.