backport changes to share.php to enable the encryption app to get all users with access to a given file