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