Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mathieu Viet

    (@imath)

    Hi there!

    I’ve tested with latest WordPress and BuddyPress and wasn’t able to reproduce. So i guess there’s something that’s going wrong with the plugin you mentioned. I don’t know what it is.
    But you can always set the user’s quota from the User’s Profile Administration screen in the WordPress backend. (look at the bottom).

    If you know what you’re doing you can try to use this code to see if it fixes the issue:

    function mln83_set_user_quota( $user_id  ) {
    	$role_quotas = bp_get_option( '_buddydrive_user_quota', array() );
    
    	if ( ! empty( $role_quotas['subscriber'] ) ) {
    		update_user_meta( $user_id, '_buddydrive_user_quota', (int) $role_quotas['subscriber'] );
    	}
    }
    add_action( 'wsl_hook_process_login_after_wp_insert_user', 'mln83_set_user_quota', 10, 1 );
    Thread Starter mln83

    (@mln83)

    Hi @imath,

    I believe that you are right. It is an issue with WSL.

    Thank you for getting back on this issue I really appreciate the support. I’ll be sure to experiment with the code you provided.

    Best regards,
    Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unassigned user role gets maximum quota’ is closed to new replies.