maniakalen/yii2-auth

Yii2 Auth rbac module

1.0.0 2019-10-11 09:56 UTC

This package is auto-updated.

Last update: 2024-10-11 21:56:48 UTC


README

Yii2 Auth extends the yii2-rbac and is useful for when you use database for defining roles and permissions.

To execute migrations:

php yii migrate/up --migration-namespaces=maniakalen\\auth\\migrations

This will import all the permissions required to manipulate the database.

Module configuration

'auth' => [
    'class' => \maniakalen\auth\Module::class,
    'components' => [
        'controlManager' => [
            'class' => \maniakalen\auth\models\AuthControlManager::class,
            'userClass' => User::class
        ]
    ]
]

The module defines rbac category for translations.