]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trying to kill the can't-leave-a-group bug
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 8 Mar 2009 01:47:43 +0000 (17:47 -0800)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 8 Mar 2009 01:47:43 +0000 (17:47 -0800)
actions/showgroup.php

index c20941a35ee07776acb475fd69152e4b139b79b4..b6022840bf47997f89cda54970e56b9779d123b6 100644 (file)
@@ -275,10 +275,8 @@ class ShowgroupAction extends Action
         $cur = common_current_user();
         if ($cur) {
             if ($cur->isMember($this->group)) {
-                if (!$cur->isAdmin($this->group)) {
-                    $lf = new LeaveForm($this, $this->group);
-                    $lf->show();
-                }
+                $lf = new LeaveForm($this, $this->group);
+                $lf->show();
             } else {
                 $jf = new JoinForm($this, $this->group);
                 $jf->show();