[wp-trac] [WordPress Trac] #46297: Unable to edit specific terms : rest_cannot_assign_term OR 403
WordPress Trac
noreply at wordpress.org
Thu Jun 13 13:49:00 UTC 2019
#46297: Unable to edit specific terms : rest_cannot_assign_term OR 403
--------------------------+------------------------------
Reporter: enps5 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by digitwebtools):
Hi Enps5,
Actually, we are experiencing something similar.
Our environment:
* Wordpress Multisite 5.1.1 (we've been using it and upgrading it for
years and years)
* Table ''sitecategories'' defined
* In table ''sitemeta'', ''global_terms_enabled'' is set to ''1''
Steps to reproduce:
* Create a new category "My category" THEN
* Create a new tag "My tag" THEN
* Create a new category with the same name of an existing tag, let's say
"My tag" THEN
* Create a new tag with the same name of an existing category, let's say
"My category"
Now it will break if you do the following:
* Edit the category "My tag" with the name of an existing tag, you'll get
"You need a higher level of permission. Sorry, you are not allowed to edit
this item."
* Edit the tag "My category" with the name of an existing category, you'll
get "You need a higher level of permission. Sorry, you are not allowed to
edit this item."
* Create / edit a content and assign the category "My tag" (with the name
of an existing tag) or assign the tag "My category" (with the name of an
existing category) and you'll get a 403 error with the response
{{{
{"code":"rest_cannot_assign_term","message":"Sorry, you are not allowed to
assign the provided terms.","data":{"status":403}}
}}}
Best regards.
Alexandre - DIGIT WEBTOOLS
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46297#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list