If I install the woocommerce-paypal-payments plugin, activate it, and log in as a non-administrator, I see an admin notice on all wp-admin pages -- "PayPal Payments is almost ready. To get started, connect your account with the Activate PayPal button on the Account Setup page.". I can click the link and I see an error "Sorry, you are not allowed to access this page.".
I expect not to see the admin notice unless logged in as an administrator.
To Reproduce
Install the woocommerce-paypal-payments plugin
activate it
log into wp-admin as a non-administrator
See admin notice
Click the link in the notice
See the error
Expected Behavior
I expect not to see the admin notice unless logged in as an administrator.
Actual Behavior
I see the admin notice, click the link, and see an error.
Describe the Bug
If I install the woocommerce-paypal-payments plugin, activate it, and log in as a non-administrator, I see an admin notice on all wp-admin pages -- "PayPal Payments is almost ready. To get started, connect your account with the Activate PayPal button on the Account Setup page.". I can click the link and I see an error "Sorry, you are not allowed to access this page.". I expect not to see the admin notice unless logged in as an administrator.
To Reproduce
Expected Behavior
I expect not to see the admin notice unless logged in as an administrator.
Actual Behavior
I see the admin notice, click the link, and see an error.
Environment