diff options
author | Joas Schilling <coding@schilljs.com> | 2023-08-17 11:55:10 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-08-17 12:00:30 +0200 |
commit | 8c9f9832f7a1dcf0826e4f2508aca6a569670eaa (patch) | |
tree | adaeb038b5b7ef251ada72e15b34410728bdb5fb | |
parent | 4da12bad1928b29720130c6491278a1bed4ffd84 (diff) |
Use in avatar controllerusing-attribute-only
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Controller/AvatarController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Controller/AvatarController.php b/lib/Controller/AvatarController.php index 20b5eab51..499d1ef48 100644 --- a/lib/Controller/AvatarController.php +++ b/lib/Controller/AvatarController.php @@ -28,7 +28,7 @@ namespace OCA\Talk\Controller; use InvalidArgumentException; use OCA\Talk\Middleware\Attribute\RequireModeratorParticipant; -use OCA\Talk\Middleware\Attribute\RequireParticipant; +use OCA\Talk\Middleware\Attribute\RequireParticipantOrLoggedInAndListedConversation; use OCA\Talk\Service\AvatarService; use OCA\Talk\Service\RoomFormatter; use OCP\AppFramework\Http; @@ -102,7 +102,7 @@ class AvatarController extends AEnvironmentAwareController { #[PublicPage] #[NoCSRFRequired] - #[RequireParticipant] + #[RequireParticipantOrLoggedInAndListedConversation] public function getAvatar(bool $darkTheme = false): Response { $file = $this->avatarService->getAvatar($this->getRoom(), $this->userSession->getUser(), $darkTheme); @@ -115,7 +115,7 @@ class AvatarController extends AEnvironmentAwareController { #[PublicPage] #[NoCSRFRequired] - #[RequireParticipant] + #[RequireParticipantOrLoggedInAndListedConversation] public function getAvatarDark(): Response { return $this->getAvatar(true); } |