Closed prawee closed 7 years ago
i'm want to change type of role to permission Exp. from permission to role case
$auth = Yii::$app->authManager; $roleName = $auth->getRole($model->name); $permission = $auth->createPermission($model->name); $permission->description = $model->description; $auth->update($roleName,$permission);
don't error but data not change.
Unable to reproduce. Update is covered by unit test, which passes successfully: https://github.com/yiisoft/yii2-mongodb/blob/master/tests/rbac/MongoDbManagerTest.php#L115
What steps will reproduce the problem?
i'm want to change type of role to permission Exp. from permission to role case
don't error but data not change.