Join on node_access when querying similar entries
schildi - May 23, 2008 - 06:31
| Project: | Similar Entries |
| Version: | HEAD |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
Appended to this issue there is a patch I wrote last night to avoid listing pages to which the user should not have any access.
This patch only affects the SQL query and should be revised by somebody!
Regards
Schildi
| Attachment | Size |
|---|---|
| similar_entries-og.patch | 2.57 KB |

#1
I don't really understand. What combination of modules are you using that doesn't implement proper node_access denies? This is patch is looking hacky.
#2
I won't accept a OG-specific patch, but if you want to join on node_access, that might be better than depending on the access control of node_load() that happens later.
#3