Merge pull request #413 from woocommerce/pcp-296-allow-show-manager

Allow WC Shop Managers to edit settings
This commit is contained in:
Emili Castells 2021-12-17 10:59:03 +01:00 committed by GitHub
commit f55de6a70e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -448,7 +448,7 @@ class SettingsListener {
// 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;