how can i know if this user has the role 'myRole'?
$user = $this->hasOne(User::className(), ['reference' => 'COD_CLIFOR']);
I have used the Yii2-user module with Yii2-rbac. I have overridden the Yii2-user admin controller and restrict access to the /user/admin/ to certain roles using AccessControl class. However, when I tried to reach /rbac/ url, it is forbidden. How can I override the rbac controller using AccessControl class?
'modules' => [
// Configuration Yii2-User Backend //
'user' => [
'class' => 'dektrium\user\Module',
'admins' => ['admin']