How is 'users'=>array('admin') set?

I am trying to give access to an administrator and I am not sure how the Admin status is set as used in the follow script (see the last line);

public function accessRules()


{


	return array(


		array('allow',  // allow all users to perform 'index' and 'view' actions


			'actions'=>array('signUp', 'create'),


			'users'=>array('*'),


		),


		array('allow', // allow authenticated user to perform 'create' and 'update' actions


			'actions'=>array('update', 'delete'),


			'users'=>array('@'),


		),


		array('allow', // allow admin user to perform 'admin' and 'delete' actions


			'actions'=>array('admin','delete'),


			'users'=>array('admin'),

Thanks for your response.

This is not how you set someone as admin. It simply said that users with ‘admin’ power allowed to perform action admin and delete.

‘@’ mean authorized users (i.e. logged in users)

I have not touched this part of Yii framework so I can not give you any advices.

Read this : http://www.yiiframework.com/doc/guide/1.1/en/topics.auth

Hello, maybe this will be a useful access-control concept