[wp-trac] [WordPress Trac] #40263: REST API: Allow site admins to edit user roles in multisite

WordPress Trac noreply at wordpress.org
Wed Apr 12 11:40:00 UTC 2017


#40263: REST API: Allow site admins to edit user roles in multisite
--------------------------+------------------------
 Reporter:  flixos90      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.8
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  multisite
--------------------------+------------------------
Changes (by jnylen0):

 * keywords:  2nd-opinion =>


Comment:

 I would like to continue to follow a simple rule when dealing with the
 users endpoint and multisite:

  By default (in the absence of a special parameter like `global=true`),
 the REST API should behave as though multisite does not exist, and clients
 should not have to care about it.

 So I agree with this change, because in general "a site administrator
 should be able to edit capabilities of a user on their site", even if
 behind the scenes this actually implies some "global" operations in a
 multisite context.

 > While other improvements to the users endpoint need to be implemented
 first ...

 I don't understand that bit - can you clarify why this change can't be
 done in isolation from others discussed at #39544?

 I agree with getting this change in sooner rather than later, but at least
 it's a broadening of existing functionality rather than a restriction,
 which helps with any backwards compatibility concerns.

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


More information about the wp-trac mailing list