diff --git a/pages/ajax.searchform.php b/pages/ajax.searchform.php index 97b1e77a1..19708f2ef 100644 --- a/pages/ajax.searchform.php +++ b/pages/ajax.searchform.php @@ -119,7 +119,7 @@ try } - if (isset($aListParams['debug']) || UserRights::IsAdministrator()) + if (isset($aListParams['debug']) || (UserRights::IsActionAllowed('ResourceRunQueriesMenu', UR_ACTION_MODIFY) == UR_ALLOWED_YES)) { $oPage->StartCollapsibleSection(Dict::S('UI:RunQuery:MoreInfo'), false, 'SearchQuery'); $oPage->p(Dict::S('UI:RunQuery:DevelopedQuery').htmlentities($oFilter->ToOQL(), ENT_QUOTES, 'UTF-8')); @@ -157,4 +157,4 @@ try IssueLog::Error($e->getMessage()."\nDebug trace:\n".$e->getTraceAsString()); } -ExecutionKPI::ReportStats(); \ No newline at end of file +ExecutionKPI::ReportStats();