[wp-trac] [WordPress Trac] #52247: Author role unable to set featured image (Error 403)
WordPress Trac
noreply at wordpress.org
Thu Jan 7 17:42:56 UTC 2021
#52247: Author role unable to set featured image (Error 403)
-----------------------------+-----------------------------
Reporter: yewzy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Role/Capability | Version: 5.6
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
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 (Ver 5.6,
Php 7.4.8, no plugins, 2021 theme).
There are two errors 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
}}}
and
{{{
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__()
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52247>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list