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

"Stick to the front page" option should not be available to Author users #2556

Closed
jamiebergen opened this Issue Aug 27, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@jamiebergen

jamiebergen commented Aug 27, 2017

Issue Overview

By default, WordPress authors do not have permission to make a post sticky. However, the Gutenberg editor sidebar metabox provides the "Stick to the front page" toggle option even if the user is an author.

Steps to Reproduce (for bugs)

  1. Log into wp-admin as an author.
  2. Go to Admin -> Gutenberg
  3. Create a new post and publish.
  4. Click on the "Stick to the front page" button to toggle that option on.
  5. Click "Update"

Expected Behavior

This option should not be visible to authors.

Current Behavior

When the author clicks "Update," the screen displays an error in red: "Updating failed"

Possible Solution

Hide this option if the user is an author.

Related Issues and/or PRs

Here's a more general issue that doesn't mention this specific issue: #2029

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment