Skip to content
Permalink
Browse files
Ensure only super user can access Items controller
  • Loading branch information
amirsanni committed Aug 1, 2021
1 parent b0d2f9f commit ba36f600b021f45104a17caa6e78a23dd3b05e19
Showing with 191 additions and 186 deletions.
  1. +2 −1 application/controllers/Items.php
  2. +189 −185 application/views/main.php
@@ -13,6 +13,7 @@ public function __construct(){
parent::__construct();

$this->genlib->checkLogin();
$this->genlib->superOnly();

$this->load->model(['item']);
}
@@ -393,4 +394,4 @@ public function delete(){
//set final output
$this->output->set_content_type('application/json')->set_output(json_encode($json));
}
}
}

0 comments on commit ba36f60

Please sign in to comment.