Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure only super user can access Items controller
  • Loading branch information
amirsanni committed Aug 1, 2021
1 parent b0d2f9f commit ba36f60
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 186 deletions.
3 changes: 2 additions & 1 deletion application/controllers/Items.php
Expand Up @@ -13,6 +13,7 @@ public function __construct(){
parent::__construct();

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

$this->load->model(['item']);
}
Expand Down Expand Up @@ -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.