P
P
pink2floyd2019-10-10 14:53:36
Yii
pink2floyd, 2019-10-10 14:53:36

Why is the permissions error displayed without styles?

It is not clear when and because of what the error styles are no longer displayed
5d9f1b8fc3eb2907035687.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-10-11
@pink2floyd

You have a problem in the settings of access rules for different actions of the controller.
You must either exclude the "error" action from the check, or specify it explicitly.
Something like this

return [
        'access' => [
            'class' => \yii\filters\AccessControl::className(),
            'except' => ['error'], // или так
            'rules' => [
              // или так
                [
                        'actions' => ['index', 'error'],
                        'allow' => true,
                 ],
            ],
        ],
    ];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question