Merge pull request #24446 from nextcloud/backport/23652/stable20
[stable20] Fix public calendars shared to circles
This commit is contained in:
commit
6916240d98
|
@ -178,10 +178,8 @@ class Principal implements BackendInterface {
|
|||
return $this->userToPrincipal($user);
|
||||
}
|
||||
} elseif ($prefix === 'principals/circles') {
|
||||
try {
|
||||
if ($this->userSession->getUser() !== null) {
|
||||
return $this->circleToPrincipal($name);
|
||||
} catch (QueryException $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
@ -471,9 +469,6 @@ class Principal implements BackendInterface {
|
|||
/**
|
||||
* @param string $circleUniqueId
|
||||
* @return array|null
|
||||
* @throws \OCP\AppFramework\QueryException
|
||||
* @suppress PhanUndeclaredClassMethod
|
||||
* @suppress PhanUndeclaredClassCatch
|
||||
*/
|
||||
protected function circleToPrincipal($circleUniqueId) {
|
||||
if (!$this->appManager->isEnabledForUser('circles') || !class_exists('\OCA\Circles\Api\v1\Circles')) {
|
||||
|
|
Loading…
Reference in New Issue