Skip to content

Commit

Permalink
members cannot directly join a Secret Circle
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl authored and backportbot[bot] committed Aug 3, 2021
1 parent 066b8c5 commit 15993f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Model/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public function inviteToCircle($circleType) {
public function joinCircle($circleType) {

switch ($circleType) {
case Circle::CIRCLES_SECRET:
case Circle::CIRCLES_PUBLIC:
return $this->addMemberToCircle();

case Circle::CIRCLES_SECRET:
case Circle::CIRCLES_CLOSED:
return $this->joinClosedCircle();
}
Expand Down

0 comments on commit 15993f4

Please sign in to comment.