Skip to content
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

Author role unable to set featured image (Error 403) #28047

Closed
yewzy opened this issue Jan 7, 2021 · 1 comment
Closed

Author role unable to set featured image (Error 403) #28047

yewzy opened this issue Jan 7, 2021 · 1 comment

Comments

@yewzy
Copy link

yewzy commented Jan 7, 2021

Describe the bug
Users with the role of author are unable to set featured images in posts. I am able to replicate this in a fresh installation of WordPress (no plugins, 2021 theme).

2 errors are shown in the console:

api-fetch.min.js?ver=5f98b08f212ba8fa8b4685ad2e1b1378:2 GET https://dev.msiachild.org/wp-json/wp/v2/media/16?context=edit&_locale=user 403

Uncaught (in promise) {code: "rest_forbidden_context", message: "Sorry, you are not allowed to edit this post.", data: {…}} code: "rest_forbidden_context" data: status: 403 __proto__: Object message: "Sorry, you are not allowed to edit this post." __proto__: constructor: ƒ Object() hasOwnProperty: ƒ hasOwnProperty() isPrototypeOf: ƒ isPrototypeOf() propertyIsEnumerable: ƒ propertyIsEnumerable() toLocaleString: ƒ toLocaleString() toString: ƒ toString() valueOf: ƒ valueOf() __defineGetter__: ƒ __defineGetter__() __defineSetter__: ƒ __defineSetter__() __lookupGetter__: ƒ __lookupGetter__() __lookupSetter__: ƒ __lookupSetter__() get __proto__: ƒ __proto__() set __proto__: ƒ __proto__()

To reproduce
Steps to reproduce the behavior:

  1. Log on to site as an author.
  2. Add new post -> Set featured image

Expected behavior
The featured image can be selected and shown as preview.

Editor version (please complete the following information):

  • WordPress version: [5.6]
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? ["default"]

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version 87.0

Additional context

@ntsekouras
Copy link
Contributor

Thanks for reporting this @yewzy - I'll close this though as is duplicate of #18510.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants