Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl committed Aug 13, 2020
1 parent fb5007d commit ff2991a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/MembersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function removeMemberById(string $memberId) {

$member = $this->membersService->getMemberById($memberId);
$data = $this->membersService->removeMember(
$member->getCircleId(), $member->getUserId(), $member->getType()
$member->getCircleId(), $member->getUserId(), $member->getType(), $member->getInstance()
);
} catch (\Exception $e) {
return
Expand Down
2 changes: 2 additions & 0 deletions lib/Service/MembersService.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ private function addSingleMember(Circle $circle, $ident, $type, $instance = '',
$this->gsUpstreamService->newEvent($event);

$new = $event->getMember();
$new->setLevel(Member::LEVEL_MEMBER);
$new->setStatus(Member::STATUS_MEMBER);
$new->setJoined($this->l10n->t('now'));

if ($new->getInstance() === $this->configService->getLocalCloudId()) {
Expand Down

0 comments on commit ff2991a

Please sign in to comment.