function category() { $helper_obj = new Helper(); $db_functions_obj = new DbFunctions(); global $base_path, $user; $cid = $user['cid']; //pr($cid); $menu_info = $db_functions_obj->get_menu_by_url($this->action); //pr($menu_info); $menu_id = $menu_info->id; if (!$helper_obj->check_role(SUPER_ADMIN_ROLE_ID)) { if ($helper_obj->user_is_logged_in() && $helper_obj->check_user_menu($menu_id, $cid)) { echo "category"; } else { $this->set_access_denied(); } } }