In Yii novice (do not scold). There are users. Different groups (total 6 groups for users). Question: how for different groups to hide a particular field when recording. Example: the "Sellers" group can edit only the "product name" field, another group can edit (let's say the category of this product), etc.

Can you please sample the code. Thank you all in advance !!!

  • I see that it is necessary to use Access Control and not a complicated mechanism to choose a scenario of model modification, etc. - VasyOk

1 answer 1

read RBAC Authorization in YII and LDAP - if not clear, read again))) This is in my opinion (and not only) the best article about access control. And for your situation, I would zayuzal tasks. What is written there too

  • Here is another good article on the topic. - KiTE