Yii2 - RBAC rule to allow/view own data
问题 I have installed yii2mod/yii2-rbac from this url - https://github.com/yii2mod/yii2-rbac in yii2-basic. everything is working fine except using/allowing owner data. from this link:https://www.yiiframework.com/doc/guide/2.0/en/security-authorization I have created a folder in root rbac and file AuthorRule.php and code: namespace app\rbac; use yii\rbac\Rule; //use app\models\Post; /** * Checks if authorID matches user passed via params */ class AuthorRule extends Rule { /** * @var string */