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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -