node_access problem

ellukes - February 6, 2008 - 20:21
Project:InsertNode
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

I have a problem with refreshing node with insertnode tag after cache filter expiration. The problem exists when there is no logged user (anonymous). After login as admin and cache_fillter table clean, the cache filter is properly generated.

For debugging I clean cache_filter table, and modify an insertnode module to return TRUE on 'no cache' query in InsertNode_filter function. When I logged in as admin there was no problem, when I logged out then InsertNode didn't work.

With anonymous user the node_access function always returns FALSE, but with user admin node_access returns TRUE because admin has a 'node administer' privileges. I think, that node_load function should be invoked before checking node access and node object passed to node_access inspite of nid.

There is a small patch in attachment which works for me perfectly.

AttachmentSize
InsertNode.module.patch402 bytes

#1

bsuttis - February 13, 2008 - 05:58

I was having the same issue and the patch above solved my problem, thanks!

#2

computer_jin - February 18, 2009 - 06:26

Hi,
Is this posible node_access data can be removed by any reason .... ? I am having this problem i got this today second my site is working properly but i got an error and user cant view content than i check node_access there is not any dataavailable i insert data in node_access table and than its working fine but again i got this same error .... what will be the problem could any one understand.....?

Azhar
4 Ace Technologies(www.4acetech.com)
karachi,Pakistan

#3

AlexisWilke - March 2, 2009 - 23:54
Status:active» fixed

As far as I know this was fixed in the module that can now be downloaded.

Please, reopen if that's not the case.

Thank you
Alexis

#4

AlexisWilke - March 2, 2009 - 23:56
Status:fixed» postponed (maintainer needs more info)

computer_jin,

Sorry, I had not been reading your message closely enough.

The latest version has the patch applied.

I do not have v5.x so I have no clue what the problem is.

Thank you.
Alexis

 
 

Drupal is a registered trademark of Dries Buytaert.