application/controllers/Orders.php
/* 
	* It only redirects to the manage order page
	*/
It only redirects to the manage order page
It only redirects to the manage order page
public function index()
	{
		if(!in_array('viewOrder', $this->permission)) {
            redirect('dashboard', 'refresh');
        }
		$this->render_template('orders/index', $this->data);		
	}
public function index ( ) { if ( ! in_array ( 'viewOrder' , $ this -> permission ) ) { redirect ( 'dashboard' , 'refresh' ) ; } $ this -> render_template ( 'orders/index' , $ this -> data ) ; }
It only redirects to the manage order page
It only redirects to the manage order page