Enable Media Replace
Roles and cap, author can replace admin files (3 posts)

  1. Jonas Lundman
    Posted 3 years ago #

    I can see there is no filter for roles and cap, means that Authors, who only can view and insert files, not edit or delete, can replace the file ...

    Is there a way to filter this?


  2. Måns Jonasson
    Plugin Author

    Posted 3 years ago #

    Actually, in upload.php I am checking for current_user_can('upload_files') which seems to be the correct solution since 'edit_files' is deprecated.

    If you have any ideas on how to improve this, I'd be grateful for the input!


  3. Jonas Lundman
    Posted 3 years ago #

    Maybe a second check for at least one other capabililty from contributor and up. In some cases users can upload their own avatar, or a pdf and crop this stuff in the edit media page.

    Im gonna keep an eye on this and come back later to suggest. Im working right now with access levels and user interface for a complex theme.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Enable Media Replace
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.