[wp-trac] [WordPress Trac] #42999: A Super Admin can have no caps on a /wp/v2/users/me?context=edit REST API request
WordPress Trac
noreply at wordpress.org
Wed Jan 10 17:45:52 UTC 2018
#42999: A Super Admin can have no caps on a /wp/v2/users/me?context=edit REST API
request
--------------------------------------+------------------------------
Reporter: imath | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: multisite
--------------------------------------+------------------------------
Comment (by jeremyfelt):
We've tried to move away from `is_super_admin()` where we can. Would
checking if the user has the `manage_network` capability work in this
scenario?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42999#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list