yii2: matchCallback in version 2.0.15 don't work
After I update version of Yii to 2.0.15, matchCallback in Controllers don’t work
On 2.0.14 it works perfect.
Code example:
[ 'actions' => ['image-upload', 'login-exist', 'reg-master', 'settings-master', 'yandex-wallet', 'review-comment', 'master-hide-dialog', 'master-message'], 'allow' => true, 'matchCallback' => function($rule, $action) { return Yii::$app->request->isAjax; } ],
Function returns bool(false).
Do yo have the same issue or it’s my bug?
Yii version 2.0.15 PHP version 7.0 Operating system Ubuntu 16.04
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (7 by maintainers)
I found why I had problem. In every rule must be unique actions, that are not using in other actions. Thank you for your help!