[eluser]RockyS[/eluser]
First I must say thank you for this awesome module!
Secondly I have a question, is there any way I can protect whole define page (ex: url/index.php/admin) without writing
if (!$this->ion_auth->logged_in())
{
redirect('user/login');
}
elseif (!$this->ion_auth->is_admin())
{
//redirect them to the home page because they must be an administrator to view this
redirect($this->config->item('base_url'), 'refresh');
}
in every controller that loads views?