Answer the question
In order to leave comments, you need to log in
How to make one action public in yii2 and the rest (without enumeration) available to registered users?
Hello.
I can't find documentation on one task of interest.
At the moment, in the controller, all actions are configured for access for the logged in user by the rule
'access' => [
'class' => AccessControl::className(),
'rules' => [
[
'allow' => true,
'roles' => ['@'],
],
],
],
Answer the question
In order to leave comments, you need to log in
'access' => [
'class' => AccessControl::className(),
'except' => ['action'],
'rules' => [
[
'allow' => true,
'roles' => ['@'],
],
]
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question