Yii Framework Forum: Maybe Bug: Empty Access Rules Don't Operate As Expected - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Maybe Bug: Empty Access Rules Don't Operate As Expected Rate Topic: -----

#1 User is offline   newscloud 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 02-April 13

Posted 30 April 2013 - 08:22 PM

Not sure if this is a bug:

I noticed that leaving an empty array in access rules breaks access restrictions e.g. 'actions'=>array() but defining them with an empty string as below keeps access restrictions working:
public function accessRules()
{
return array(
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array(''),
'users'=>array('*'),
),

i.e. if empty array ... the redirect for pages doesn't happen
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users