get_project($project_id); $wppm_current_user_capability = get_user_meta( $current_user->ID, 'wppm_capability', true ); $public_project=$wppmfunction->get_project_meta($project_id,'public_project',true); if (!(($current_user->ID && $current_user->has_cap('manage_options')) || ($current_user->ID && $current_user->has_cap('wppm_admin')) || ($project['created_by']==$current_user->ID && $wppm_current_user_capability == 'wppm_manager'))) {exit;} ob_start(); ?>