Fix permissions issues on share modal

closes #932