#2668 closed defect (bug) (fixed)
cannot leave hidden group
Reported by: | dwenaus | Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | 1.5 | |
Component: | Groups | Keywords: | needs-patch |
Cc: |
Description
One cannot leave a hidden group - the button is there but clicking it makes no difference.
Change History (4)
#1
@
14 years ago
- Component changed from Core to Groups
- Keywords needs-patch added
- Version set to 1.3
#2
@
14 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
@
14 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.
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...