I started using srbac in Yii.
The options that are available: create a role, task and operation and then assign:
Operation to Task, Task to Role.
My question is:
do i need to create a task for each operation?
because i want to assign 1 operation to the lowest user level, and 4 operations to the super admin.
hope i was clear,
Danny
Role, Task and Operation are all ‘authorization items‘, you’ve to had it present. They only provide a way to organize permissions in a tree way, and then you can choose whatever node of the tree and assign it to a user. Of course it is also possible to assign multiple nodes to a user, being leafs or not.
If you only need to design a very simple app, you can simply create 4 ‘operations’ (or tasks, or roles), and assign them under your criteria to the users. But tree scheme is recommended for medium-big apps.