Open maxxer opened 2 years ago
@MatteoF96 could this be related to your recent commits?
Please check you have this in your config:
'authManager' => [
'class' => 'Da\User\Component\AuthDbManagerComponent',
],
I had a similar issue which was caused by the default config to use yii\rbac\DbManager
(advanced template); struggled with it for almost a day 😓
for some days after a update
$roles = Yii::$app->authManager->getRolesByUser(Yii::$app->user->getId());
returns a empty arrayOriginally posted by @EndErr in https://github.com/2amigos/yii2-usuario/issues/442#issuecomment-1052043485