the share action should only be added for shareable files

IMHO this file action should only be registered for shareable files.

The "shared by xyz" is registered in a different place. 

@DeepDiver1975 @VicDeo @icewind1991 @schiesbn needs port to master.