Bugfix: Allow users to 'unshare' histories shared with them.
Merge next-stable.