Needs review
Project:
Relevant Content
Version:
5.x-1.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2009 at 05:33 UTC
Updated:
10 Jan 2009 at 17:31 UTC
It seems the module does not obey any node_access restrictions. For example if you have a private organic group, the links to the content inside are available only to designated users. Other modules like tracker,views follow this convention. But relavant module shows links even if the reader does not have access to view actually content.
I think this is a critical access restriction that module should not ignore.
Comments
Comment #1
ajayg commentedperhaps this is duplicate (not sure though) since similar issue has been raised for domain acess module and RC.
Comment #2
ajayg commentedthis may be duplicate of #344310: RC doesn't respect node access?.
Comment #3
ajayg commentedmade following change to 5.x version of the module and now it seems to respect node access.
Search for following line in the function relevant_content_get_nodes.
and change to
I tested this with 5.x version with OG node acess enabled.
Comment #4
ajayg commentedJust so you are aware making the query node access aware is quite costly. The original query roughly takes 2.5 milliseconds. The modified query which respects node access took a whopping 219 milliseconds, almost 100 times more.