login tutorial question

Hello,

I am following the example.

http://www.yiiframework.com/doc/blog/1.1/en/prototype.auth

I can login ok, but cannot modify records.

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

Thanks

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?