trying to kill the can't-leave-a-group bug
This commit is contained in:
parent
bea3fca189
commit
f66775658c
@ -275,10 +275,8 @@ class ShowgroupAction extends Action
|
|||||||
$cur = common_current_user();
|
$cur = common_current_user();
|
||||||
if ($cur) {
|
if ($cur) {
|
||||||
if ($cur->isMember($this->group)) {
|
if ($cur->isMember($this->group)) {
|
||||||
if (!$cur->isAdmin($this->group)) {
|
|
||||||
$lf = new LeaveForm($this, $this->group);
|
$lf = new LeaveForm($this, $this->group);
|
||||||
$lf->show();
|
$lf->show();
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$jf = new JoinForm($this, $this->group);
|
$jf = new JoinForm($this, $this->group);
|
||||||
$jf->show();
|
$jf->show();
|
||||||
|
Loading…
Reference in New Issue
Block a user