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
|
||||
# subscriptions page
|
||||
if ($user->isMember($this->group)) {
|
||||
if (!$user->isAdmin($this->group)) {
|
||||
$lf = new LeaveForm($this->out, $this->group);
|
||||
$lf->show();
|
||||
}
|
||||
} else {
|
||||
$jf = new JoinForm($this->out, $this->group);
|
||||
$jf->show();
|
||||
|
Loading…
Reference in New Issue
Block a user