Translate no permission for configuration error message

refs #6339
This commit is contained in:
Eric Lippmann 2015-05-27 10:44:52 +02:00
parent e33791b50f
commit 5aa9738b55

View File

@ -85,7 +85,7 @@ class ConfigController extends Controller
public function indexAction() public function indexAction()
{ {
if ($this->firstAllowedAction === null) { if ($this->firstAllowedAction === null) {
throw new SecurityException('No permission for configuration'); throw new SecurityException($this->translate('No permission for configuration'));
} }
$action = $this->getTabs()->get($this->firstAllowedAction); $action = $this->getTabs()->get($this->firstAllowedAction);
if (substr($action->getUrl()->getPath(), 0, 7) === 'config/') { if (substr($action->getUrl()->getPath(), 0, 7) === 'config/') {