mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
[Debug] If the ENVIRONMENT variable is set to development show debug options
This commit is contained in:
@@ -7,6 +7,9 @@ class Debug extends CI_Controller {
|
||||
|
||||
$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'); }
|
||||
if(ENVIRONMENT != "development") {
|
||||
show_error("You must have global enviroment set to development", '403', $heading = 'An Error Was Encountered');
|
||||
}
|
||||
}
|
||||
|
||||
/* User Facing Links to Backup URLs */
|
||||
|
||||
Reference in New Issue
Block a user