src/Modules/Rollback.php
public function can_load( $product ) {
		if ( $this->is_from_partner( $product ) ) {
			return false;
		}
		if ( $product->is_theme() && ! current_user_can( 'switch_themes' ) ) {
			return false;
		}

		if ( $product->is_plugin() && ! current_user_can( 'install_plugins' ) ) {
			return false;
		}

		return true;
	}
public function can_load( $product ) {
		if ( $this->is_from_partner( $product ) ) {
			return false;
		}
		if ( $product->is_theme() && ! current_user_can( 'switch_themes' ) ) {
			return false;
		}

		if ( $product->is_plugin() && ! current_user_can( 'install_plugins' ) ) {
			return false;
		}

		return true;
	}
public function can_load ( $ product ) { if ( $ this -> is_from_partner ( $ product ) ) { return false ; } if ( $ product -> is_theme ( ) && ! current_user_can ( 'switch_themes' ) ) { return false ; } if ( $ product -> is_plugin ( ) && ! current_user_can ( 'install_plugins' ) ) { return false ; } return true ; }
Loads product object.

@param Product $product Product object.

@return bool Should we load the module?
Loads product object .