Fixes issues with incorrect users being able to be shared to.