From 03b25d00d5efe59a295f065e843132c3817aadd7 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 10 Aug 2020 23:26:02 +0100 Subject: [PATCH] Fixed backup features --- application/controllers/Backup.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/controllers/Backup.php b/application/controllers/Backup.php index b1bb3a5b..9859c6ab 100644 --- a/application/controllers/Backup.php +++ b/application/controllers/Backup.php @@ -4,14 +4,13 @@ class Backup 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'); } } /* User Facing Links to Backup URLs */ public function index() { + $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'); } $data['page_title'] = "Backup";