WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jonas Lundman
    Member
    Posted 10 months 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?

    http://wordpress.org/extend/plugins/enable-media-replace/

  2. Måns Jonasson
    Member
    Plugin Author

    Posted 10 months 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!

    /M;

  3. Jonas Lundman
    Member
    Posted 9 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.