Closed (won't fix)
Project:
OG Forum
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2010 at 16:01 UTC
Updated:
15 May 2015 at 19:27 UTC
Jump to comment: Most recent
Comments
Comment #1
pro.methean commentedI am having this issue in 6.x-2.2.
Now in my environment Forum Topic is set with View Anonymous and View Authenticated as off, figuring the OG Forums would take care of escalated the privileges. It does take care of it properly for group members but not for outsiders.
Should this be happening in og_forum_db_rewrite_sql? I have patched out some code that was giving me trouble, but don't see how that could be the cause:
http://drupal.org/node/651672#comment-3341090
I've been pouring over the og_forums.module but have not been able to determine, Where and how is this privileges escalation (for members) is happening, or should be happening (for non-members).
Any pointers?
- Pro
Comment #2
drupalninja99 commentedI think the $user->og_groups isn't populated by the time the og_forum module checks it. $user->og_groups is populated in og_init() but when I do a print_r() in the og_forum_access_forum_page() it isn't populated. that is being called by a menu alter hook.
Comment #3
drupalninja99 commentedOK I just made a patch to 2.2, altho I'm having trouble exporting it so I will just paste in the code
We just need the og_forum_access_forum_page() page to load the groups into the user object if they aren't already available.
Comment #4
pro.methean commentedThis may be related to my #1168010: Forum topic sometimes created as private even though created in public forum on the og_forum_resurrection sandbox.
Comment #5
vegantriathlete