mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
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:
parent
ce20a1e549
commit
5dbf1e48a7
@ -112,9 +112,7 @@ class Controller extends ActionController
|
|||||||
$this->_helper->viewRenderer($this->compactView);
|
$this->_helper->viewRenderer($this->compactView);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->_getParam('format') === 'sql') {
|
||||||
if ($this->_getParam('format') === 'sql'
|
|
||||||
&& IcingaConfig::app()->global->get('environment', 'production') === 'development') {
|
|
||||||
echo '<pre>'
|
echo '<pre>'
|
||||||
. htmlspecialchars(wordwrap($query->dump()))
|
. htmlspecialchars(wordwrap($query->dump()))
|
||||||
. '</pre>';
|
. '</pre>';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user