Skip to content

Commit

Permalink
Allow WC Shop Managers to edit settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexP11223 committed Dec 16, 2021
1 parent 2967b63 commit 5623c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ppcp-wc-gateway/src/Settings/SettingsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ private function is_valid_site_request() : bool {
// phpcs:enable WordPress.Security.NonceVerification.Missing
// phpcs:enable WordPress.Security.NonceVerification.Recommended

if ( ! current_user_can( 'manage_options' ) ) {
if ( ! current_user_can( 'manage_woocommerce' ) ) {
return false;
}
return true;
Expand Down

0 comments on commit 5623c64

Please sign in to comment.