bsf_display_rollback_version_form( string $product_id )

Check is user has permisson to view the product rollback version form.


Description


Parameters

$product_id

(string) (Required) Product ID.


Return

(bool)


Source

File: admin/bsf-core/includes/helpers.php

function bsf_display_rollback_version_form( $product_id ) {
	if ( ! BSF_License_Manager::bsf_is_active_license( $product_id ) ) {
		return false;
	}

	if ( is_multisite() && ! current_user_can( 'manage_network_plugins' ) ) {
		return false;
	}

	if ( ! current_user_can( 'update_plugins' ) ) {
		return false;
	}

	return true;
}


User Contributed Notes

You must log in before being able to contribute a note or feedback.