Be more kindly :-)
This commit is contained in:
parent
50316bbb80
commit
e6933a28da
|
@ -55,7 +55,7 @@ class Browser extends BaseModule
|
||||||
protected function content(array $request = []): string
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
if (!$this->session->getLocalUserId()) {
|
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
|
// Needed to match the correct template in a module that uses a different theme than the user/site/default
|
||||||
|
|
|
@ -56,7 +56,7 @@ class Browser extends BaseModule
|
||||||
protected function content(array $request = []): string
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
if (!$this->session->getLocalUserId()) {
|
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
|
// Needed to match the correct template in a module that uses a different theme than the user/site/default
|
||||||
|
|
Loading…
Reference in New Issue
Block a user