mutogen / yii2-rbac-widget
This small extension helps you to see whole rbac hierarchy by each role and see hierarchy for current user
Installs: 112
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
This package is not auto-updated.
Last update: 2024-04-08 23:19:34 UTC
README
This small extension helps you to see whole rbac hierarchy by each role and see hierarchy for current user
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mutogen/yii2-rbac-widget "*"
or add
"mutogen/yii2-rbac-widget": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \mutogen\rbacw\Hierarchy::widget(); ?>
Options
userId
- user's id for permissions list
class
- full user's class name