Dominus77 / yii2-advanced-start

Yii2 Start Project Advanced Template
https://dominus77.github.io/yii2-advanced-start/
MIT License
23 stars 12 forks source link

routes #26

Closed erwinsaid closed 5 years ago

erwinsaid commented 5 years ago

How do I create a new permission and relate it to my action (backend / modules / company / create) ?, this because in the action create Permission, it does not show me the routes of the actions to relate it.

Dominus77 commented 5 years ago

You can create a rule in the web interface or add it to the RBAC initialization, then put a check in the controller. Recorded a video on creating RBAC rules, binding to roles, and access checks.

https://yadi.sk/i/5GSs2sIky-d4Nw

erwinsaid commented 5 years ago

Thank you