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

CommentFileSizeAuthor
similar_entries-og.patch2.57 KBschildi

Comments

deekayen’s picture

Status: Active » Postponed (maintainer needs more info)

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.

deekayen’s picture

Title: Similar entries: Patch to respect "organic groups" access restrictions » Respect node_access restrictions
Version: 5.x-2.0 » master
Status: Postponed (maintainer needs more info) » Needs work

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.

deekayen’s picture

Title: Respect node_access restrictions » Join on node_access when querying similar entries
jordojuice’s picture

Status: Needs work » Closed (won't fix)

The author has never replied and the issue was opened years ago. Closing. Please reopen if needed.