[eluser]Codepeak[/eluser]
Or you can add "else" statement
// Make sure only an Administrator can use this controller
if ($this->session->userdata('user_group') != 'Administrator')
{
$data['title'] = 'Sorry, You Can\'t Do That';
$data['content'] = 'admin/not_admin';
$this->load->view('template', $data);
}
else
{
$data['title'] = 'My nice admin page';
$this->load->view('admin');
}
But I would rather build a proper auth library or use an existing.