From 15993f490daab38c5d0afa5a937929e74628a353 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Tue, 3 Aug 2021 12:06:00 -0100 Subject: [PATCH] members cannot directly join a Secret Circle Signed-off-by: Maxence Lange --- lib/Model/Member.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Model/Member.php b/lib/Model/Member.php index be17d6400..779ed4083 100644 --- a/lib/Model/Member.php +++ b/lib/Model/Member.php @@ -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(); }