Hi, I’m newb in PHP framework’s, and this is the first framework i used, for the moment my experience is good, but i have a question for the rbac system. My question is the next:
With this system can i control if a user rol ‘collaborator’ can see/edit a field of a form?
I haven’t used ‘raw’ role based code so I can’t really (off the cuff) tell what code to use - I am using Rights extension, which makes that really easy.
Maybe I’ll get back to you, if no-one beats me to it.
It’s just a matter of:
<?php if(Yii::app()->user->hasRights('what_rights') : ?>
show the field
<?php endif; ?>