Skip to content

Commit

Permalink
Merge pull request #1123 from nextcloud/backport/24/1118
Browse files Browse the repository at this point in the history
[stable24] ignore circle with no initiator
  • Loading branch information
PVince81 authored Aug 2, 2022
2 parents 38bbe1f + 5853153 commit 6bd9802
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Listeners/DeprecatedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ public function userAccountUpdated(IUser $user) {

foreach ($circles as $circle) {
// we are only interested in direct membership
if ($circle->getInitiator()->getSingleId() !== $federatedUser->getSingleId()) {
if (!$circle->hasInitiator()
|| $circle->getInitiator()->getSingleId() !== $federatedUser->getSingleId()) {
continue;
}

Expand Down

0 comments on commit 6bd9802

Please sign in to comment.