Support » Plugin: Media Library Assistant » Restrict access to own media only

  • Resolved kugae

    (@kugae)


    I need a feature that allows me to restrict access to media.
    Is there a way to restrict access to the media library so that a user can only access the files that he has uploaded themselve or were he is the owner?
    That would be really great.
    Thank you for help.
    Kurt

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question. It’s not clear whether you are trying to restrict front end access or admin mode access. If you want to restrict front end access you can have a look at this earlier topic:

    Show images uploaded by current user

    If you want to restrict admin mode access then I regret that the current MLA version does not have any features to accomplish this. There are probably other plugins in the Repository or on the market that address this need. If you find one you like I will do everything I can to ensure that MLA is compatible with it.

    I regret the news is not better but I am marking this topic resolved simply because your question has been answered to the best of my ability. Thanks for your understanding and your interest in MLA.

    Thread Starter kugae

    (@kugae)

    Thank you very much for your fast answer. When I understand the example right, than I have to use a shortcode. That would not fit my requirements. What I need, is a function for the media library, which allows none admin users only to see and to change media, which was uploaded by themselves.
    Is there a solution with MLA? I was very happy with the bulk facilities of MLA, which allowed me to change the author of media.
    But today, when MLA is active my small function to filter ajax_query_attachments_args does not work any more. Independent of that, I did not found a solution to filter the list view of media library.
    I would be happy for each kind of help. Thank you
    Kurt

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the additional details. You are right that the example plugin I mentioned is not what you need.

    You wrote “But today, when MLA is active my small function to filter ajax_query_attachments_args does not work any more. Independent of that, I did not found a solution to filter the list view of media library.

    MLA provides a number of filters and actions you might find useful. For example, in the “” section of the Settings/Media Library Assistant Documentation tab you can find filters similar to the ajax_query_attachments_args filter you are using now. Have a look at these MLA hooks:

    • mla_media_modal_query_initial_terms
    • mla_media_modal_query_filtered_terms
    • mla_media_modal_query_final_terms

    The “MLA Media Modal Hooks Example” plugin will show you the details you need to implement these hooks.

    You wrote “Independent of that, I did not found a solution to filter the list view of media library.” MLA does not make any changes to the “list” mode of the Media/Library admin submenu. Do you mean the Media/Assistant admin submenu? If so, there are hooks for this screen as well. You can explore them in the “Media/Assistant Submenu Actions and Filters (Hooks)” section of the Documentation tab.

    I hope that helps. Please post an update if you have problems or further questions regarding the hooks MLA provides for filtering the “query attachments” results and the Media/Assistant admin submenu table.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.