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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1002010-access-argument-2.patch | 1.53 KB | mradcliffe |
| #1 | 1002010-access-argument.patch | 1.39 KB | mradcliffe |
Comments
Comment #1
mradcliffeI 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?
Comment #2
mradcliffeNevermind, that patch is bugged for node/% paths. Still working on it.
Comment #3
mradcliffe*tweet* Improper use of node_access() in Drupal 7. Five yard penalty. First down.
Let's try again. ;-)
Comment #4
mradcliffeCommitted.