From 3c1cb1d9192a1d50c1e991ec9f64ef84181c860b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 16 Oct 2020 11:26:01 +0200 Subject: Remove updating-methods from Participant object Signed-off-by: Joas Schilling --- lib/Middleware/InjectionMiddleware.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Middleware') diff --git a/lib/Middleware/InjectionMiddleware.php b/lib/Middleware/InjectionMiddleware.php index 9b7e89427..5ef6d17ba 100644 --- a/lib/Middleware/InjectionMiddleware.php +++ b/lib/Middleware/InjectionMiddleware.php @@ -117,7 +117,7 @@ class InjectionMiddleware extends Middleware { */ protected function getLoggedIn(AEnvironmentAwareController $controller, bool $moderatorRequired): void { $token = $this->request->getParam('token'); - $room = $this->manager->getRoomForParticipantByToken($token, $this->userId); + $room = $this->manager->getRoomForUserByToken($token, $this->userId); $controller->setRoom($room); $participant = $room->getParticipant($this->userId); @@ -136,7 +136,7 @@ class InjectionMiddleware extends Middleware { */ protected function getLoggedInOrGuest(AEnvironmentAwareController $controller, bool $moderatorRequired): void { $token = $this->request->getParam('token'); - $room = $this->manager->getRoomForParticipantByToken($token, $this->userId); + $room = $this->manager->getRoomForUserByToken($token, $this->userId); $controller->setRoom($room); if ($this->userId !== null) { -- cgit v1.2.3