From e6933a28daac3bf58859447dfd06c4ea7f825e96 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 27 Nov 2022 01:27:44 +0100 Subject: [PATCH] Be more kindly :-) --- src/Module/Media/Attachment/Browser.php | 2 +- src/Module/Media/Photo/Browser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Media/Attachment/Browser.php b/src/Module/Media/Attachment/Browser.php index 021859c021..50e0b7f803 100644 --- a/src/Module/Media/Attachment/Browser.php +++ b/src/Module/Media/Attachment/Browser.php @@ -55,7 +55,7 @@ class Browser extends BaseModule protected function content(array $request = []): string { if (!$this->session->getLocalUserId()) { - throw new UnauthorizedException($this->t('Permission denied.')); + throw new UnauthorizedException($this->t('You need to be logged in to access this page.')); } // Needed to match the correct template in a module that uses a different theme than the user/site/default diff --git a/src/Module/Media/Photo/Browser.php b/src/Module/Media/Photo/Browser.php index 48f4b3a96b..76b9db3a51 100644 --- a/src/Module/Media/Photo/Browser.php +++ b/src/Module/Media/Photo/Browser.php @@ -56,7 +56,7 @@ class Browser extends BaseModule protected function content(array $request = []): string { if (!$this->session->getLocalUserId()) { - throw new UnauthorizedException($this->t('Permission denied.')); + throw new UnauthorizedException($this->t('You need to be logged in to access this page.')); } // Needed to match the correct template in a module that uses a different theme than the user/site/default -- 2.39.5