Don't provide helpful error messages for unauthenticated users

fixes 
This commit is contained in:
Eric Lippmann 2015-05-27 11:05:06 +02:00
parent 49f89ee505
commit e025f59807
1 changed files with 1 additions and 1 deletions
application/controllers

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