trying to kill the can't-leave-a-group bug

This commit is contained in:
Evan Prodromou 2009-03-07 17:47:43 -08:00
parent bea3fca189
commit f66775658c

View File

@ -275,10 +275,8 @@ class ShowgroupAction extends Action
$cur = common_current_user();
if ($cur) {
if ($cur->isMember($this->group)) {
if (!$cur->isAdmin($this->group)) {
$lf = new LeaveForm($this, $this->group);
$lf->show();
}
} else {
$jf = new JoinForm($this, $this->group);
$jf->show();