Closed (duplicate)
Project:
Organic Groups Subscriptions
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2008 at 22:32 UTC
Updated:
9 Mar 2008 at 18:04 UTC
In _subscriptions_og_node_options() and possibly elsewhere the code loads nodes from the database without using rewrite_sql(). That may allow groups to be displayed that the user should not be able to see.
Comments
Comment #1
develcuy commentedI is not clear to me by now, but at this moment _subscriptions_og_node_options() loads nodes according to an array provided by og module which is on charge of check who must access what group. subscriptions_og_get_groups_by_types() and subscriptions_og_get_group_types() are called by subscriptions module to display subscription controls.
I'm not sure how to reproduce this if is a bug, please provide some guidelines.
Blessings!
Comment #2
gustav commentedGood point. This is an og bug, not a subscriptions_og bug, because the og module should not include the private groups in the $node->og_groups array. I have posed the issue in the og issue queue at http://drupal.org/node/231901 and marked this one as a duplicate.
Comment #3
gustav commentedAnd Moshe has already comitted a fix, see http://drupal.org/node/231901.