When viewing mysite as Anonymous, the notice "Notice: Trying to get property of non-object in node_access() (line 2868 of /home/mysite.nl/public_html/modules/node/node." is diplayed.

When logged-in as administrator, however, it seems to work fine.

Comments

mradcliffe’s picture

Version: 7.x-1.0-beta1 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new1.39 KB

I just found this bug last week as well. I did not change the user_access arguments appropriately so it wasn't passing in an object in some cases. No security concern.

Can you try the following patch?

mradcliffe’s picture

Status: Needs review » Needs work

Nevermind, that patch is bugged for node/% paths. Still working on it.

mradcliffe’s picture

Status: Needs work » Needs review
StatusFileSize
new1.53 KB

*tweet* Improper use of node_access() in Drupal 7. Five yard penalty. First down.

Let's try again. ;-)

mradcliffe’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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