Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#49393 new defect (bug)

Author user role, Gutenberg add picture from someone else, rest_forbidden_context crash, image size crash

Reported by: debricon's profile debricon Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.3.2
Component: Editor Keywords:
Focuses: administration, rest-api Cc:


Login as a user with role Author (important, user editor works normaly).

Create post, add existing picture from the gallery to your article.
In the console you'll get an error :

{code: "rest_forbidden_context",

and you can't change the image size.

  • User roles Editor and Admin are not affected.
  • Uploaded picture by the Author are not affected.

Change History (2)

#1 @SergeyBiryukov
4 years ago

  • Component changed from Gallery to Editor

#2 @TimothyBlynJacobs
4 years ago

I think this needs to be reported in the Gutenberg repository: It looks like the error is client side, an author legitimately wouldn't have access to the media gallery.

Note: See TracTickets for help on using tickets.