Skip to content

Commit 7826af1

Browse files
committed
Minor optimization
1 parent c0a979c commit 7826af1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdf-forms-for-wpforms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function admin_notices()
211211
{
212212
if( ! class_exists('WPForms') || ! defined( 'WPFORMS_VERSION' ) )
213213
{
214-
if( current_user_can( 'install_plugins' ) && current_user_can( 'activate_plugins' ) )
214+
if( current_user_can( 'activate_plugins' ) )
215215
echo Pdf_Forms_For_WPForms::render_error_notice( 'wpf-not-installed', array(
216216
'label' => esc_html__( "PDF Forms Filler for WPForms Error", 'pdf-forms-for-wpforms' ),
217217
'message' => esc_html__( "The required plugin 'WPForms' version is not installed!", 'pdf-forms-for-wpforms' ),
@@ -220,7 +220,7 @@ public function admin_notices()
220220
}
221221

222222
if( ! $this->is_wpf_version_supported( WPFORMS_VERSION ) )
223-
if( current_user_can( 'update_plugins' ) )
223+
if( current_user_can( 'activate_plugins' ) )
224224
echo Pdf_Forms_For_WPForms::render_warning_notice( 'unsupported-wpf-version-'.WPFORMS_VERSION, array(
225225
'label' => esc_html__( "PDF Forms Filler for WPForms Warning", 'pdf-forms-for-wpforms' ),
226226
'message' =>

0 commit comments

Comments
 (0)