Don't provide helpful error messages for unauthenticated users

fixes #6952
This commit is contained in:
Eric Lippmann 2015-05-27 11:05:06 +02:00
parent 8b07a0e29a
commit 124173f3c8
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class ErrorController extends ActionController
$path = array_shift($path);
$this->getResponse()->setHttpResponseCode(404);
$this->view->message = $this->translate('Page not found.');
if ($modules->hasInstalled($path) && ! $modules->hasEnabled($path)) {
if ($this->Auth()->isAuthenticated() && $modules->hasInstalled($path) && ! $modules->hasEnabled($path)) {
$this->view->message .= ' ' . sprintf(
$this->translate('Enabling the "%s" module might help!'),
$path