diff options
Diffstat (limited to 'lib/Controller/RecordingController.php')
-rw-r--r-- | lib/Controller/RecordingController.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Controller/RecordingController.php b/lib/Controller/RecordingController.php index 0948fe538..73ba4541f 100644 --- a/lib/Controller/RecordingController.php +++ b/lib/Controller/RecordingController.php @@ -100,4 +100,21 @@ class RecordingController extends AEnvironmentAwareController { } return new DataResponse(); } + + /** + * @PublicPage + * @RequireModeratorParticipant + */ + public function notificationDismiss(string $token, string $dateTime): DataResponse { + try { + $this->recordingService->notificationDismiss( + $token, + $this->participant->getAttendee()->getActorId(), + $dateTime + ); + } catch (InvalidArgumentException $e) { + return new DataResponse(['error' => $e->getMessage()], Http::STATUS_BAD_REQUEST); + } + return new DataResponse(); + } } |