octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
Do not render debug toolbar in ajax request.
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 1 changed files with 1 additions and 1 deletions
@@ -85,7 +85,7 @@ class Module extends \yii\base\Module
|
||||
|
||||
public function renderToolbar($event)
|
||||
{
|
||||
if (!$this->checkAccess()) {
|
||||
if (!$this->checkAccess() || Yii::$app->getRequest()->getIsAjax()) {
|
||||
return;
|
||||
}
|
||||
$url = Yii::$app->getUrlManager()->createUrl($this->id . '/default/toolbar', [
|
||||
|
||||
Reference in New Issue
Block a user