• Hi,
    Great plugin, you are doing a great job. I’ve got some questions.

    I’m working in a website in which all files will be private. I want administrators to see all files, and users to see only their own files.

    1. In backend, admins can see all private files, but it’s not very clear, so I will use frontend. In frontend, when I’m logged in as administrator, I can see and download private files if they are in root folder, but private folders shows the “No files” message (i’ve checked there are some files). Seems like a bug.

    2. Is there any filter for disabling “public” and “password protected” privacy options when uploading files? I want all files to be private.

    3. Is there any other filter to disable “BuddyDrive” user profile tab if not is_admin and not bp_is_my_profile? (all files will be private, so users don’t need this tab when seeing other user’s profile)

    Thanks in advance.
    I’m working on spanish translation, but I haven’t translated admin strings yet. I’ll share it when ready.

    Kind regards,
    Fernando

    https://wordpress.org/plugins/buddydrive/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sr_blasco

    (@sr_blasco)

    Solution for point 3:
    Note I use ‘documentos’ because my buddydrive page is called Documentos. Use Buddydrive if you have default configuration.

    function remove_buddydrive_nav() {
    	if ( !current_user_can('manage_options') && !bp_is_my_profile() ) {
    		global $bp;
    		bp_core_remove_subnav_item($bp->groups->slug,'documentos');
    		bp_core_remove_nav_item( 'documentos' );
    	}
    }
    add_action( 'bp_setup_nav', 'remove_buddydrive_nav', 20 );

    Thanks for your feedback. I’ll check the folder problem for Administrator and see if i can do something easier for point 3 (your code should work, i would use the ‘bp_moderate’ capability or maybe for admins bp_is_item_admin() because with ‘manage_options’ i doubt group admins can view the nav )

    About point 2, i think, this topic https://wordpress.org/support/topic/document-sharing-options-only-show-choose-the-group is relative and i’ll work on it for 1.2.2

    https://github.com/imath/buddydrive/issues/4

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Admin can't open private folder in frontend’ is closed to new replies.