Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 7ac965a

Browse files
committed
Not paste panel if ajax request
1 parent 4c5ebcf commit 7ac965a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ggrachdev.debugbar/classes/general/BitrixDebugger/Events/OnEndBufferContent.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@
22

33
namespace GGrach\BitrixDebugger\Events;
44

5+
use \Bitrix\Main\Application;
6+
57
/**
68
* Description of OnEndBufferContent
79
*
810
* @author ggrachdev
911
*/
1012
class OnEndBufferContent {
11-
13+
1214
public function addDebugBar(&$content) {
1315
global $USER, $APPLICATION;
1416

17+
$request = Application::getInstance()->getContext()->getRequest();
18+
1519
if (
1620
strpos($APPLICATION->GetCurDir(), "/bitrix/") !== false ||
1721
$APPLICATION->GetProperty("save_kernel") == "Y" ||
1822
!\is_object($USER) ||
19-
!$USER->IsAdmin()
23+
!$USER->IsAdmin() ||
24+
$request->isAjaxRequest()
2025
) {
2126
return;
2227
}

0 commit comments

Comments
 (0)