[wp-trac] [WordPress Trac] #40230: Is it intended to return 500 for this message: You can't give users that role. or Sorry, you are not allowed to give users that role.

WordPress Trac noreply at wordpress.org
Wed Mar 22 16:30:27 UTC 2017


#40230: Is it intended to return 500 for this message: You can't give users that
role. or Sorry, you are not allowed to give users that role.
----------------------------------------+------------------------------
 Reporter:  tuanmh                      |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Users                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  administration
----------------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => needs-patch good-first-bug
 * focuses:   => administration
 * component:  General => Users
 * version:  4.6.4 =>


Comment:

 Thanks for the ticket @tuanmh. Yes, these responses should provide an HTTP
 status code of 403 instead of 500.

 If you can [https://make.wordpress.org/core/handbook/contribute/fixing-
 bugs/ make a patch] for these changes that would be great!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40230#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list