Error 403 if permission is denied

This commit is contained in:
Eike Foken
2011-08-18 03:34:47 +02:00
parent 16a7adc0d9
commit 3e495b62f3

View File

@@ -35,7 +35,7 @@ class Admin_Controller extends CI_Controller {
parent::__construct();
if (!$this->access->isAdmin()) {
show_error(_('Shove off, this is for admins.'));
show_error(_('Shove off, this is for admins.'), 403);
}
}
}