Fix broken sharing page when not the owner of a project