site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

Address Contributor issues - adminbar and confirmation message

Open lilybonney opened this issue 7 years ago • 3 comments

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

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots

Welcome to Site Kit message

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.

lilybonney avatar Jul 17 '19 22:07 lilybonney

Implementation brief looking good!

felixarntz avatar Jul 18 '19 15:07 felixarntz

Assigning to @marrrmarrr for final review/approval!

lilybonney avatar Jul 30 '19 10:07 lilybonney

LGTM

marrrmarrr avatar Jul 31 '19 08:07 marrrmarrr