<strong>API:</strong>
</div>
<pre>{{ $ctrl.debug.apiParams }}</pre>
- <strong>SQL:</strong>
- <pre ng-if="!$ctrl.debug.sql">{{:: ts('Run search to view SQL') }}</pre>
- <pre ng-repeat="query in $ctrl.debug.sql">{{ query }}</pre>
+ <div ng-if="$ctrl.perm.viewDebugOutput">
+ <strong>SQL:</strong>
+ <pre ng-if="!$ctrl.debug.sql">{{:: ts('Run search to view SQL') }}</pre>
+ <pre ng-repeat="query in $ctrl.debug.sql">{{ query }}</pre>
+ </div>
</div>
</fieldset>