WordPress.org

Make WordPress Core

Opened 8 weeks ago

Last modified 8 weeks ago

#49393 new defect (bug)

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

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

Description

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 :
https://i.ibb.co/Xpkh5zs/bug-wordpress.png

/wp-json/wp/v2/media/11133?context=edit&_locale=user
{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 (1)

#1 @SergeyBiryukov
8 weeks ago

  • Component changed from Gallery to Editor
Note: See TracTickets for help on using tickets.