Allow WC Shop Managers to edit settings

https://woocommerce.com/document/roles-capabilities/
This commit is contained in:
Alex P 2021-12-16 18:30:35 +02:00
parent 2967b63fdf
commit 5623c641e4

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;