forked from GNUsocial/gnu-social
Remove leave button from grouplist if current user is admin of that group.
This commit is contained in:
parent
f8d1381717
commit
f9a7ae27b8
@ -164,8 +164,10 @@ 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)) {
|
||||||
$lf = new LeaveForm($this->out, $this->group);
|
if (!$user->isAdmin($this->group)) {
|
||||||
$lf->show();
|
$lf = new LeaveForm($this->out, $this->group);
|
||||||
|
$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
Block a user