#2668 closed defect (bug) (fixed)
cannot leave hidden group
| Reported by: | dwenaus | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5 |
| Component: | Groups | Version: | 1.5 |
| Severity: | Keywords: | needs-patch | |
| Cc: |
Description
One cannot leave a hidden group - the button is there but clicking it makes no difference.
Change History (4)
#2
@
16 years ago
Was looking at the wrong part of code.
The right function to debug is groups_leave_group().
Is groups_action_leave_group() even necessary? Might need to deprecate it.
#4
@
16 years ago
Strangely, there was a check in bp_dtheme_ajax_joinleave_group() - the ajax handler in bp-default - that was preventing you from leaving hidden groups. It's been there since bp-default was first put into the trunk. I am not sure what the reasoning would be for not letting someone leave a hidden group (maybe that they wouldn't be able to rejoin??), but in any case it's a check that should not be happening at the level of AJAX.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Confirmed on 1.3-bleeding. Leaving public and private groups work fine.
What's interesting is I commented out the following line in bp-groups.php:
Just to see what would happen and the same thing occurred; I was able to leave public and private groups fine, but couldn't leave hidden groups...