|
|
@ -85,7 +85,7 @@ class Module extends \yii\base\Module |
|
|
|
|
|
|
|
|
|
|
|
public function renderToolbar($event) |
|
|
|
public function renderToolbar($event) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!$this->checkAccess()) { |
|
|
|
if (!$this->checkAccess() || Yii::$app->getRequest()->getIsAjax()) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
$url = Yii::$app->getUrlManager()->createUrl($this->id . '/default/toolbar', [ |
|
|
|
$url = Yii::$app->getUrlManager()->createUrl($this->id . '/default/toolbar', [ |
|
|
|