Deny Accessrule

hi friends

why roles parameter dont work in deny accessRule ?

for example :


array(

        array('allow',

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

          'roles'=>'superAdmin',		            

        ),

		        

	array('deny',  

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

	  'roles'=>array('Author,superAdmin'),

	  'message'=>'no access',

	),

);

deny ‘roles’ array parametr dont work ! why ?

Probably because your array isn’t really an array but a comma delimited string? Try


'roles'=>array('Author','superAdmin'),

Also, the roles attribute requires an array according to the docs, so you probably need to update your allow rule too.

no, dont work

:(

Try fixing the allow rule too. Which controller is this in?

siteController