forked from GNUsocial/gnu-social
		
	trying to kill the can't-leave-a-group bug
This commit is contained in:
		| @@ -275,10 +275,8 @@ class ShowgroupAction extends Action | |||||||
|         $cur = common_current_user(); |         $cur = common_current_user(); | ||||||
|         if ($cur) { |         if ($cur) { | ||||||
|             if ($cur->isMember($this->group)) { |             if ($cur->isMember($this->group)) { | ||||||
|                 if (!$cur->isAdmin($this->group)) { |                 $lf = new LeaveForm($this, $this->group); | ||||||
|                     $lf = new LeaveForm($this, $this->group); |                 $lf->show(); | ||||||
|                     $lf->show(); |  | ||||||
|                 } |  | ||||||
|             } else { |             } else { | ||||||
|                 $jf = new JoinForm($this, $this->group); |                 $jf = new JoinForm($this, $this->group); | ||||||
|                 $jf->show(); |                 $jf->show(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user