Based on changes IQSS/dataverse#11636 here, download/count and downloadsize will return 403 for user: guests, the getByPersistentId should be refactored to adapt the change
If user:guest and the dataset is deaccessioned:
- dataset is ok to show basic info, versions and deaccessioned reason
- NO File info could be shown, cannot direct to file page as well
- Hide share button
- Hide metric(prevent fetching
download/count
Based on changes IQSS/dataverse#11636 here,
download/countanddownloadsizewill return 403 for user: guests, thegetByPersistentIdshould be refactored to adapt the changeIf
user:guestand the dataset is deaccessioned:download/count