We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The file is like as
<?php use yii\db\Schema; use yii\db\Migration; class m150910_204507_init_blog_rbac extends Migration { public function up() { $auth = Yii::$app->authManager; $manageBlog = $auth->createPermission('manageBlog'); $manageBlog->description = 'Manage blog'; $auth->add($manageBlog); $admin = $auth->createRole('admin'); $admin->description = 'Administrator'; $auth->add($admin); $auth->addChild($admin, $manageBlog); } public function down() { Yii::$app->authManager->removeAll(); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The file is like as
The text was updated successfully, but these errors were encountered: