Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement with RBAC #137

Open
zainalawaludin opened this issue Dec 3, 2015 · 2 comments
Open

implement with RBAC #137

zainalawaludin opened this issue Dec 3, 2015 · 2 comments

Comments

@zainalawaludin
Copy link

Hi how to implement this extension on RBAC ? i want log each change like auth_item, auth_assigment, auth_item_child, but i confuse where i put 'bedezign\yii2\audit\AuditTrailBehavior'. FYI i use Yii::$app->authManager for CRUD. Thanks

@cornernote
Copy link
Contributor

Looked into this quickly. Not very simple to achieve.

Assuming you currently use yii\rbac\DbManager, you would need to extend this class. It should be noted this class is not a model, but instead uses insert/delete sql commands directly, so you would need to implement models for each of the tables that it uses.

@rafaelwithoeft
Copy link

Hello @zainalawaludin
It is being discussed an improvement for RBAC, so it uses ActiveRecord classes and consequently ActiveQuery, which I believe can resolve this issue.

yiisoft/yii2#570
yiisoft/yii2#6872

Best Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants