Skip to content

Commit

Permalink
Merge pull request #769 from nextcloud/backport/768/stable20
Browse files Browse the repository at this point in the history
[stable20] members cannot directly join a Secret Circle
  • Loading branch information
ArtificialOwl authored Aug 3, 2021
2 parents 066b8c5 + 15993f4 commit 6ea34b6
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 6ea34b6

Please sign in to comment.