php - Grant access to module in Yii2 -


Is it possible to set permissions with RBAC methods (role, permissions) to reach the module in Yii2? To allow users of a specific role to be used for one of their modules

I use filters for this purpose:

  'Module' = & gt; ['Roles' = & gt; ['Class' = & gt; 'AJ \ Admin \ Module', 'Access' = & gt; ['Class' = & gt; 'Yii \ filters \ AccessControl', 'Rule' = & gt; [['Permission' = & gt; True, 'roles' = & gt; ['Admin'],]]],]  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -