mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
force authenticating on remote calendar
This commit is contained in:
parent
ca44ebccf3
commit
a845fddf2e
@ -202,6 +202,10 @@ class CalendarController extends AbstractController
|
|||||||
{
|
{
|
||||||
$this->denyAccessUnlessGranted('ROLE_USER');
|
$this->denyAccessUnlessGranted('ROLE_USER');
|
||||||
|
|
||||||
|
if (!$this->remoteCalendarConnector->isReady()) {
|
||||||
|
return $this->remoteCalendarConnector->getMakeReadyResponse($request->getUri());
|
||||||
|
}
|
||||||
|
|
||||||
if (!$this->getUser() instanceof User) {
|
if (!$this->getUser() instanceof User) {
|
||||||
throw new UnauthorizedHttpException('you are not an user');
|
throw new UnauthorizedHttpException('you are not an user');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user