[wp-trac] [WordPress Trac] #19834: More Robust Capabilities for Attachments

WordPress Trac noreply at wordpress.org
Thu Mar 26 13:45:45 UTC 2015


#19834: More Robust Capabilities for Attachments
-----------------------------+------------------------------
 Reporter:  walkinonwat3r    |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by husobj):

 Replying to [comment:19 barrykooij]:
 > In my case I've got a CPT with custom capabilities. The role only has
 permission to view/edit/delete these CPT items, but must also be able to
 manage media items (featured image, but also deleting previous uploaded
 images in the media library). The only option at the moment is granting
 the role access to editing posts, what I don't want to.

 I've just encountered this issue too.
 I have a user who is allowed to edit a CPT, but not edit Posts.
 They can add media as required to insert into their CPT posts, but they
 are not able to delete media.

 It does seem a bit odd linking the capability to delete media to
 edit_posts.
 If feels like media should have it's own delete capabilities or if
 attached to a CPT, inherit the capabilities of that rather than Posts.

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


More information about the wp-trac mailing list