Skip to content

Commit 75923b1

Browse files
committed
Minor optimization
1 parent da5b52e commit 75923b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdf-forms-for-woocommerce.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function admin_notices()
242242
{
243243
if( ! class_exists( 'WooCommerce' ) || ! defined( 'WC_VERSION' ) )
244244
{
245-
if( current_user_can( 'install_plugins' ) && current_user_can( 'activate_plugins' ) )
245+
if( current_user_can( 'activate_plugins' ) )
246246
echo Pdf_Forms_For_WooCommerce::render_error_notice( 'woocommerce-not-installed', array(
247247
'label' => esc_html__( "PDF Forms Filler for WooCommerce Error", 'pdf-forms-for-woocommerce' ),
248248
'message' => esc_html__( "The required plugin 'WooCommerce' version is not installed!", 'pdf-forms-for-woocommerce' ),
@@ -251,7 +251,7 @@ public function admin_notices()
251251
}
252252

253253
if( ! $this->is_wc_version_supported( WC_VERSION ) )
254-
if( current_user_can( 'update_plugins' ) )
254+
if( current_user_can( 'activate_plugins' ) )
255255
echo Pdf_Forms_For_WooCommerce::render_warning_notice( 'unsupported-woocommerce-version-'.WC_VERSION, array(
256256
'label' => esc_html__( "PDF Forms Filler for WooCommerce Warning", 'pdf-forms-for-woocommerce' ),
257257
'message' =>

0 commit comments

Comments
 (0)