Skip to content

Commit

Permalink
Merge pull request #413 from woocommerce/pcp-296-allow-show-manager
Browse files Browse the repository at this point in the history
Allow WC Shop Managers to edit settings
  • Loading branch information
Dinamiko authored Dec 17, 2021
2 parents 2967b63 + 5623c64 commit f55de6a
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 f55de6a

Please sign in to comment.