Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#12098 closed enhancement (fixed)

Should use current_user_can for [12908], users.php Add New button

Reported by: nacin Owned by:
Priority: normal Milestone: 3.0
Component: Role/Capability Version:
Severity: normal Keywords:
Cc: Focuses: multisite

Description

[12908] can be reverted as we already perform that check in map_meta_cap.

Additionally, we should convert that logic in users.php over to create_users.

Attachments (1)

12098.diff (1.6 KB ) - added by nacin 17 years ago.

Download all attachments as: .zip

Change History (5)

@nacin
17 years ago

#1 @dd32
17 years ago

I'll check this up again later.. if its in map_meta_cap its not working as intended

#2 @dd32
17 years ago

You're right. It is there, and it does work as intended.

The problem is that has_cap() returns true for ALL caps for super users, regardless.. and the file hasnt been updated to rely on the cap.

#3 @dd32
17 years ago

(In [12916]) Revert [12908]. Update Users cap to use a capability. See #12098. Props nacin

#4 @dd32
17 years ago

  • Resolutionfixed
  • Status newclosed
Note: See TracTickets for help on using tickets.