Access Rules not working




public function filters()

    {

        return array(

            'accessControl',

        );

    }

	

	public function accessRules()

	{

		return array(

			array('allow',  // allow all users to perform 'index' action

				'actions'=>array('index'),

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

			),

			array('allow', //allow authenticated user to perform 'select' and 'contact' actions

				'actions'=>array('select','contact'),

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

				

			),

		);

	}



This is in my SiteController.php, but still users not logged in can access the contact/select action.

Do I have to do something else?

Fixed by adding


array('deny',  // deny all users

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

			),



to the accessRules function.