diff --git a/postmark.php b/postmark.php index f97e570..d95b085 100644 --- a/postmark.php +++ b/postmark.php @@ -75,7 +75,7 @@ function send_test_email() { } // We check that the current user is allowed to update settings. - if ( ! current_user_can('manage_options') ) { + if ( ( is_multisite() && ! current_user_can('manage_network_options') ) || ! current_user_can('manage_options') ) { wp_die(__('Cheatin’ uh?')); } @@ -140,7 +140,7 @@ function save_settings() { } // We check that the current user is allowed to update settings. - if ( ! current_user_can('manage_options') ) { + if ( ( is_multisite() && ! current_user_can('manage_network_options') ) || ! current_user_can('manage_options') ) { wp_die(__('Cheatin’ uh?')); }