Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#39202 closed enhancement (fixed)

Replace is_super_admin() checks with current_user_can( 'manage_network_users' ) in wp-admin/user-new.php (lines 40 and 316)

Reported by: dhanendran's profile dhanendran Owned by: flixos90's profile flixos90
Milestone: 4.8 Priority: normal
Severity: normal Version:
Component: Role/Capability Keywords: has-patch
Focuses: multisite Cc:

Description

This is part of the https://core.trac.wordpress.org/ticket/37616#comment:26 task. There are 2 is_super_admin() checks with current_user_can( 'manage_network_users' ) in wp-admin/user-new.php (lines 40 and 316).

Attachments (1)

39202.patch (1.0 KB) - added by dhanendran 8 years ago.

Download all attachments as: .zip

Change History (3)

@dhanendran
8 years ago

#1 @flixos90
8 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.8
  • Owner set to flixos90
  • Status changed from new to reviewing
  • Type changed from defect (bug) to enhancement

Hi @dhanendran, and thanks for the patch - looks good!

#2 @flixos90
8 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 39935:

Multisite: Replace is_super_admin() with manage_network_users when trying to add an existing user via username.

Props dhanendran.
Fixes #39202. See #37616.

Note: See TracTickets for help on using tickets.