Allow format=sql to everybody right now

* we have no "devel" environment any more
* we might allow this based on permissions
This commit is contained in:
Thomas Gelf 2014-03-06 09:17:55 +00:00
parent ce20a1e549
commit 5dbf1e48a7
1 changed files with 1 additions and 3 deletions
modules/monitoring/library/Monitoring

View File

@ -112,9 +112,7 @@ class Controller extends ActionController
$this->_helper->viewRenderer($this->compactView);
}
if ($this->_getParam('format') === 'sql'
&& IcingaConfig::app()->global->get('environment', 'production') === 'development') {
if ($this->_getParam('format') === 'sql') {
echo '<pre>'
. htmlspecialchars(wordwrap($query->dump()))
. '</pre>';