]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Remove leave button from grouplist if current user is admin of that group."
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 8 Mar 2009 01:16:52 +0000 (17:16 -0800)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 8 Mar 2009 01:16:52 +0000 (17:16 -0800)
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 f9a7ae27b8879569a3f0eff478cbd3b650bdca28.

lib/grouplist.php

index 8e2637fec9626de9615f6243b2e3cba5dd19acee..1b854749982198e68f89de742d2c1fd306e3ce1c 100644 (file)
@@ -164,10 +164,8 @@ 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();
-                }
+                $lf = new LeaveForm($this->out, $this->group);
+                $lf->show();
             } else {
                 $jf = new JoinForm($this->out, $this->group);
                 $jf->show();