I need to block access to my index.php main page, I changed siteController.php with the following code:
public function accessRules() { return array( // allow all users to perform 'index' and 'view' actions * array('allow', 'actions' => array('index','view'), 'users' => array('admin'), ), // allow authenticated user to perform 'create' and 'update' actions @ array('allow', 'actions' => array('create','update'), 'users' => array('admin'), ), // allow admin user to perform 'admin' and 'delete' actions array('allow', 'actions' => array('admin','delete'), 'users' => array('admin'), ), // deny all users array('deny', 'users' => array('*'), ), ); }
Because I have to provide access only for the administrator. After these manipulations, I saw that the redirect works, and the url becomes index.php / site / login, but instead of the login / password form, I got ERR_TOO_MANY_REDIRECTS . I hope you could understand me)
source share