Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#8117 closed defect (bug) (fixed)

Media library should not show edit or delete links for non-admins

Reported by: mrmist's profile mrmist Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: General Keywords:
Focuses: Cc:


When viewing the media library non-admins/editors are given "edit" and "delete" links next to media content owned by other users.

Clicking delete gives a wp_die that they cannot delete the post.
Clicking edit goes back to the dashboard.

Neither edit nor delete links should be shown for non-admin/editors for content that does not belong to them. (In fact it's a toss-up if the other user content should appear at all, given that there's a multi-item delete action available that then behaves akwardly.)

9570 via svn.

Change History (1)

#1 @ryan
16 years ago

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

(In [9686]) Check caps when showing media edit and delete links. fixes #8117

Note: See TracTickets for help on using tickets.