Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin notice displayed for non-admin users #2378

Open
cssjoe opened this issue Jun 28, 2024 · 0 comments
Open

Admin notice displayed for non-admin users #2378

cssjoe opened this issue Jun 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cssjoe
Copy link

cssjoe commented Jun 28, 2024

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

  1. Install the woocommerce-paypal-payments plugin
  2. activate it
  3. log into wp-admin as a non-administrator
  4. See admin notice
  5. Click the link in the notice
  6. 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.

Environment

  • WordPress Version: 6.5.5
  • WooCommerce Version: 9.0.2
  • Plugin Version: 2.8.0
  • Browser [e.g. Chrome, Safari] and Version: Chrome
  • Any other plugins installed: No
@InpsydeNiklas InpsydeNiklas added the enhancement New feature or request label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants