Issue #3167613 by jdiza, glynster: Fix bug with shared collection instead of private, based on patch for rest_password.