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; }
Expand full source code Collapse full source code View on Trac