site-kit-wp
site-kit-wp copied to clipboard
Address Contributor issues - adminbar and confirmation message
Bug Description
After logging in Contributors see:
- "Editing one of your posts" should be "viewing one of your published posts" - Contributors cannot edit their published posts and no data is available for draft posts.
Steps to reproduce
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Screenshots

Additional Context
- PHP Version:
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Plugin Version [e.g. 22]
- Device: [e.g. iPhone6]
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- Text changed to "viewing one of your published posts"
Implementation Brief
googlesitekit.permissions have the same values for authors and contributors. Add new value to canPublishPosts
Show requested text depending on canPublishPosts permission https://github.com/google/site-kit-wp/blob/develop/assets/js/components/dashboard-splash/dashboard-splash-app.js#L119
Changelog entry
- Update copy on splash screen for authors and contributors because they do not have permissions to edit published posts.
Implementation brief looking good!
Assigning to @marrrmarrr for final review/approval!
LGTM