• Resolved NBH707

    (@nbh707)


    I would like to prevent users with the author role from having the ability to edit and delete media files they did not upload. How can I do this?

Viewing 1 replies (of 1 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    WordPress looks if user can edit the parent post (post to which the media file is attached). It checks – edit_posts, edit_published_posts, edit_others_posts if user is not the author and similar the delete posts capabilities.
    If media file is uploaded by other user and attached to the post or page created by other user, user with author role can not edit/delete it.

    Or do you write about media file not attached to any post/page?

Viewing 1 replies (of 1 total)
  • The topic ‘How to prevent role from editing and deleting media files’ is closed to new replies.