wp-calypso
wp-calypso copied to clipboard
On a self-hosted site with WooCommerce and Jetpack connection, Products tab does not work as expected when Secure Sign On is enabled
Quick summary
On a self-hosted site with WooCommerce and Jetpack connection, Products tab in the menu area redirects to the Products page in WP-Admin (/wp-admin/edit.php?post_type=product
).
However, when Secure Sign On is enabled, this is no longer the case. The Products
tab points to https://wordpress.com/types/product/{site}
page that displays the You need permission to manage this post type
Ask your site administrator to grant you access notice.
Steps to reproduce
-
Set up a self-hosted site with Jetpack connection and WooCommerce installed
-
Visit the site in Calypso
-
Try to access Products from the main menu (left sidebar)
-
You will be redirected to your site's WP Admin > Products (
/wp-admin/edit.php?post_type=product
) -
Now, activate Secure Sign On (In your WP dashboard in Jetpack > Settings > Security > WordPress.com Login or in Calypso Settings > Security > WordPress.com log in
-
Reload the browser in Calypso
-
You will notice that the
gridicons-external
icon disappeared -
When you click the Products you will be pointed to
https://wordpress.com/types/product/{site}
page that displays You need permission to manage this post type Ask your site administrator to grant you access
What you expected to happen
The icon does not disappear and the user is redirected to their WP Admin > Products. In other words, I would expect that the experience does not change whether SSO is enabled or not. The notice is also confusing, it's displayed regardless if there are only one or multiple admins on the site.
What actually happened
User is confused. They are admin but don't have permission to edit/see products.
Context
Reported in 5863777-zd-woothemes
Platform (Simple, Atomic, or both?)
Self-hosted
Theme-specific issue?
No response
Browser, operating system and other notes
No response
Reproducibility
Consistent
Severity
Some (< 50%)
Available workarounds?
No but the platform is still usable
Workaround details
- Clarify to the user that they should always log in to their WP admin in order to edit Products.
- Disable SSO to remove the confusion