Support » Plugin: BuddyMedia » Disable User to Create or Upload Media?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author modemlooper

    (@modemlooper)

    Who do you want to upload?

    Great question – only admin – I failed to say who.

    I need the ability to turn off the media uploads or the ability to create albums.

    bigbankclub

    (@bigbankclub)

    So if anyone knows how to disallow users from uploading, that would be great 🙂

    Plugin Author modemlooper

    (@modemlooper)

    You could remove the tab for non admins

    function my_remove_nav() {
        global $bp;
    
        if ( ! current_user_can('edit_users') ) {
            bp_core_remove_nav_item( 'media' );
        }
    
    }
    add_action( 'bp_init', 'my_remove_nav' );
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable User to Create or Upload Media?’ is closed to new replies.