Active
Project:
Coherent Access
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Aug 2010 at 13:24 UTC
Updated:
6 Sep 2010 at 18:36 UTC
function coherent_access_nodeapi(): select db queries on lines 436 and 440 are wrong.
I would suggest to use the same select db queries as function coherent_access_get_user_nodes() on line 797.
Comments
Comment #1
jp.stacey commentedI'm not sure how they're wrong: don't they want to restrict the realm to just
coherent_access? That's whathook_node_access_records()is there to ensure. In contrast, the later SQL is intended to retrieve all nodes for a given user, regardless of realm.(btw, the SQL in coherent_access_get_user_nodes is somewhere different in head, at line 767.)