From 1068d442c97f01d312f20501dfab4342facdfdb6 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Wed, 30 May 2018 23:19:24 +0200 Subject: [PATCH] Minor fixes to rbac migration docs --- docs/installation/migration-guide-from-dektrium-tools.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/installation/migration-guide-from-dektrium-tools.md b/docs/installation/migration-guide-from-dektrium-tools.md index 8689567..1f4a963 100644 --- a/docs/installation/migration-guide-from-dektrium-tools.md +++ b/docs/installation/migration-guide-from-dektrium-tools.md @@ -56,10 +56,11 @@ In `config/web.php` remove *module > rbac* configuration and change the *modules ## Rbac migrations -[yii2-rbac](https://github.com/dektrium/yii2-rbac) had a nice tool which are rbac migrations, which helped writing new permissions and roles. +[yii2-rbac](https://github.com/dektrium/yii2-rbac) have a nice tool which are rbac migrations, which help writing new permissions and roles. There's no such feature in yii2-usuario, but in case you need to still apply them you can: 1. create a migration component which basically it's the same as the original [Migration](https://github.com/dektrium/yii2-rbac/blob/master/migrations/Migration.php) object, with some minor changes. Copy the content below and save it in your `@app/components/RbacMigration.php`: + ```php