Download & Extend

Groups showing in My Groups block even though membership request hasn't been approved

Project:Organic groups
Version:6.x-2.0
Component:og.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Users who haven't been approved as a group members can see the group name in the "My Groups" block (created by view og_my).

To repeat the behavior:
- create a group with "Membership request: Moderated - membership requests must be approved."
- login as another user and click on "Request membership" for that group (group names available at /og)
- the group automatically shows up in the "My Groups" block before I get approved for it.

Because that block is created by a view, there is a simple fix to it:
- add another filter to the og_my view: "Organic groups: OG: Is membership approved" should be set to yes.

So this is not a big issue but the fact that someone is called a member when they in fact are not yet a member of the group can cause problems in other parts of the system that rely on that information.

This issues was already reported a few years ago for OG 4.7 http://drupal.org/node/64700 and it was fixed so I'm not sure why the bug is still here.

BTW, cloning that view and setting filter "Organic groups: OG: Is membership approved" to no, we can get a list of groups I'm waiting for membership approval for.

nobody click here