Hello, I want to combine CAccessControl and user privilages, so here is what I have now:
-
I have edited UserIdentity and so after user loges in I setState(‘privilages’, $record->privilages). ‘privilages’ may equal to 0,1,2,3,4…
-
I want to create something like this: user is allowed to make this action if ‘privilages’ > 2
I have read the manual about CAccessControl but I can’t guess how to set rules of CAccessControl to acheave my goal.
p.s.
Sorry for my English.