fix share label creation

fix creation of "shared by xx" labels for files without share permission.

fix #8682 

cc @PVince81