Assorted Security improvements

This commit is contained in:
Peter Goodhall
2019-10-05 19:35:55 +01:00
parent 7450c14836
commit a22c0cb149
6 changed files with 58 additions and 13 deletions

View File

@@ -2,6 +2,15 @@
class Notes extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->model('user_model');
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); }
}
/* Displays all notes in a list */
public function index()
{