Hi guys! I need help with authorization data, i try implement dbmanager, i need that two users can edit post: i create on auth_item table: user1, user2, create. on auth_item_child i have user1->create, user2->create, on auth_assignment i have user1->1, user2->2 (1 and 2 has a my id users ). But when i can try de action create only one user is authorization for that! why?
Please check the follow:
'matchCallback' => function($rule, $action) {
if(Yii::$app->user->identity->usua_tius_id >=2 && Yii::$app->user->identity->usua_activo != 1){
return true;
}
}
You can use matchCallaback in your acces rules to custom yur rule.