Closed (fixed)
Project:
Organic Groups
Version:
6.x-2.x-dev
Component:
og.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Nov 2010 at 12:02 UTC
Updated:
22 Nov 2010 at 07:00 UTC
afaik it's impossible to assign anonymous users to organic groups, however this function, called by og_access_node_grants() (and hence on any node page via node_access()) queries the og_uid table with uid = 0. Attached patch checks for !$uid and returns an empty array early.
| Comment | File | Size | Author |
|---|---|---|---|
| og_get_subscriptions.patch | 595 bytes | catch |
Comments
Comment #1
amitaibuCommitted, thanks.
Comment #2
amitaibu@catch,
btw, where is this function called from for anonymous user -- we should probably prevent it from being called.
Comment #3
catchThanks!
This is the code in question. Agreed it makes sense not to call it at all here, but I'm not very familiar with the og code base so checking directly in the function itself seemed like it'd case any other cases too.