[wp-trac] [WordPress Trac] #44833: Return a more accurate error message when user cannot perform the requested action

WordPress Trac noreply at wordpress.org
Thu Aug 23 18:31:32 UTC 2018


#44833: Return a more accurate error message when user cannot perform the requested
action
----------------------------+----------------------------------------
 Reporter:  desrosj         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.9.9
Component:  Privacy         |    Version:  4.9.6
 Severity:  normal          |   Keywords:  needs-patch good-first-bug
  Focuses:  administration  |
----------------------------+----------------------------------------
 When a user attempts to export or erase personal data, the
 `export_others_personal_data` and `erase_others_personal_data` &
 `delete_users` capabilities (respectively) are checked for the current
 user.

 If these checks fail, `Invalid Request.` is returned as an error message.
 A more accurate error message should be returned that indicates the user
 does not have the required permission to perform the requested action.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44833>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list