BuddyDev

Search

How can I restrict users from uploading media based on their user role?

Tagged: 

  • Participant
    Level: Enlightened
    Posts: 26
    Peter Fae on #20525

    pretty much what I asked. I have a publishing site where I wish to a slow users to join and share their messages and what-not, yet wish to restrict upload of media to specific user roles (like, ;Author’)

    thanks!

  • Keymaster
    (BuddyDev Team)
    Posts: 21852
    Brajesh Singh on #20530

    Hi Peter,
    Thank you for asking.

    In MediaPress, we have various filters available to allow it.

    Here is an example that restricts gallery creation and media upload to 2 per user. Please feel free to extend it.

    https://gist.github.com/sbrajesh/928d36128afe48cd6cdf29a47a232abb

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved