bug on public link solved

This commit is contained in:
Lucio Lelii 2022-10-17 15:27:40 +02:00
parent 88406a3bf2
commit b5b3669af5
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ public class ItemsManager extends Impersonable{
return downloadHandler.downloadVersionedItem(ses, currentUser, (AbstractFileItem) versionedItem, publicLink.getVersion(), true);
default:
Item currentItem = node2Item.getItem(publicLink.getId(), ses, Excludes.GET_ONLY_CONTENT);
return downloadHandler.downloadVersionedItem(ses, currentUser, (AbstractFileItem) currentItem, publicLink.getVersion(), true);
return downloadHandler.downloadFileItem(ses,(AbstractFileItem) currentItem, currentUser, true);
}
}catch(RepositoryException re ){