- This topic has 16 replies, 8 voices, and was last updated 6 years, 8 months ago by .
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Allowing non-admin user profiles to see the eStore panel in wp-admin:
Tagged: Administration, User Roles
I need the editor role be used by someone to access both eMember and eStore and I need the author role to only access eStore.
I have used
define(“ESTORE_MANAGEMENT_PERMISSION”, “edit_pages”);
to give access to eStore to the editor role and the editor can access eStore.
I also want to give it to the author role so I replaced edit_pages with publish_posts
define(“ESTORE_MANAGEMENT_PERMISSION”, “publish_posts”);
The editor role can still access eStore but the author role can not access eStore.
What am I doing wrong or should I be doing something else?
If you give author role access then anyone above that role will also get access. So use ONE define statement for the author role. The following should do:
define(“ESTORE_MANAGEMENT_PERMISSION”, “edit_published_posts”);