When viewing a node, if you don't have access to view revisions, _node_revision_access() should bail out early, instead that seems to be the last check. This results in a query on single node views for auth users which shouldn't be there.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | node_revision_access.patch | 2.17 KB | catch |
| #4 | node_revision_access.patch | 2.17 KB | catch |
| #2 | node_revision_access.patch | 2.66 KB | catch |
| #1 | node_revision_access.patch | 2.66 KB | catch |
Comments
Comment #1
catchHere's a patch.
Comment #2
catchCode style horror, no other changes.
Comment #4
catchFix typo.
Comment #6
catchThis one passes.
Comment #7
moshe weitzman commentedComment #8
dries commentedNice catch. Committed to HEAD. Thanks!