WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 months ago

#19834 new feature request

More Robust Capabilities for Attachments — at Version 3

Reported by: walkinonwat3r Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch
Focuses: Cc:

Description (last modified by ocean90)

Attachments/files should have their own set of capabilities mirroring those of posts, in addition to upload_files. Specifically:

  • edit_attachments
  • edit_others_attachments
  • delete_attachments
  • delete_others_attachments

Currently, attachments rely on the edit_posts capability, which can create complications if you don't want your users to see the "Posts" sidebar item, or don't want them to be able to delete the attachments they upload.

Change History (3)

comment:2 in reply to: ↑ description DrewAPicture2 years ago

  • Cc xoodrew@… added
  • Keywords needs-patch added

Replying to walkinonwat3r:

-edit_attachments
-edit_others_attachments
-delete_attachments
-delete_others_attachments

I agree. Editing posts and editing attachments/media are mutually exclusive. It makes little sense to allow users caps to upload media but not edit it without having to grant them the ability to also edit posts. +1

comment:3 ocean902 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.