From ddf42d0358f37e37ce50d4dc33ff191fa7080a25 Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 11 Oct 2019 17:08:35 +0200 Subject: [PATCH] Access right on display explain search --- pages/ajax.searchform.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();