login tutorial question


I am following the example.


I can login ok, but cannot modify records.

How do I mark my login with the required rights to add/update?


In my users table, I have a field group_id

A value of 1 is admin, 2 is user.

I used the $user->setState(‘group_id’,$user->group_id)

But how do I check it in the Controller?