forked from GNUsocial/gnu-social
Revert "Remove leave button from grouplist if current user is admin of that group."
People shouldn't be forced to be part of a group, even if they are the
admin. If a group has no admin, we need to figure out what to do with
it, but it's wrong to force anyone to be part of a group.
This reverts commit f9a7ae27b8
.
This commit is contained in:
parent
d014d43c68
commit
ad83998f10
|
@ -164,10 +164,8 @@ class GroupList extends Widget
|
||||||
# XXX: special-case for user looking at own
|
# XXX: special-case for user looking at own
|
||||||
# subscriptions page
|
# subscriptions page
|
||||||
if ($user->isMember($this->group)) {
|
if ($user->isMember($this->group)) {
|
||||||
if (!$user->isAdmin($this->group)) {
|
$lf = new LeaveForm($this->out, $this->group);
|
||||||
$lf = new LeaveForm($this->out, $this->group);
|
$lf->show();
|
||||||
$lf->show();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$jf = new JoinForm($this->out, $this->group);
|
$jf = new JoinForm($this->out, $this->group);
|
||||||
$jf->show();
|
$jf->show();
|
||||||
|
|
Loading…
Reference in New Issue