if(in_array( $this->session->userdata('user_type'),array(1,2))){
// Permission granted
}else{
$this->displayFile("access_denied");
// Access Denied you don't have access to view this resource.
}
No comments:
Post a Comment