Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
A valid user session is required for circles.
The circles app depends on a valid userId. A public shared calender might be viewed by guests without a user session. For such requests the principal is null.

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb authored and backportbot[bot] committed Nov 30, 2020
commit 23263f9490d718ee200d0ce8ab5a51b8fc0678ce
4 changes: 3 additions & 1 deletion apps/dav/lib/Connector/Sabre/Principal.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ public function getPrincipalByPath($path) {
return $this->userToPrincipal($user);
}
} elseif ($prefix === 'principals/circles') {
return $this->circleToPrincipal($name);
if ($this->userSession->getUser() !== null) {
return $this->circleToPrincipal($name);
}
}
return null;
}
Expand Down