diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-16 12:26:01 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-30 12:38:08 +0300 |
commit | 3c1cb1d9192a1d50c1e991ec9f64ef84181c860b (patch) | |
tree | f8686d3705e160a06a37b631a5e0e811f278437f /lib/Middleware | |
parent | eae9ad72b1b4854897e8e7d4dcdf7d9887ce0e3c (diff) |
Remove updating-methods from Participant object
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Middleware')
-rw-r--r-- | lib/Middleware/InjectionMiddleware.php | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |