As you can see, the interface provided by the srbac extension is very powerful and convenient. It is great for adding new roles, tasks, and operations. However, when we add new users to the system, it would be convenient to assign the users, roles on the spot.
i. Add a comment at the top of the file listing the new model variable in the model relations section as follows:
* The following are the available model relations: * @property Person $person * @property Assignments $assignments
ii. Add an entry for assignments to the
relations array as follows:
return array( 'person' ...