diff --git a/application/controllers/Band.php b/application/controllers/Band.php index 04c6ec17..98a92cb6 100644 --- a/application/controllers/Band.php +++ b/application/controllers/Band.php @@ -13,6 +13,7 @@ class Band 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'); } + print_r($this->session->userdata('user_type')); } public function index() diff --git a/application/views/bands/index.php b/application/views/bands/index.php index ec79ddb5..0edaa541 100644 --- a/application/views/bands/index.php +++ b/application/views/bands/index.php @@ -54,8 +54,10 @@ $wwff = 0;
+ session->userdata('user_type') == '99') { ?> +