Skip to content

Commit 9fc29bf

Browse files
committed
Merge branch 'hotfix/26.9.2'
2 parents 89bbee5 + 675a4df commit 9fc29bf

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
44

5+
26.9.2 (2026-05-06)
6+
===================
7+
8+
* Hotfix to avoid errors on creating preprint versions
9+
510
26.9.1 (2026-04-28)
611
===================
712

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "osf",
3-
"version": "26.9.1",
3+
"version": "26.9.2",
44
"scripts": {
55
"ng": "ng",
66
"analyze-bundle": "ng build --configuration=analyze-bundle && source-map-explorer dist/**/*.js --no-border-checks",

src/app/features/preprints/pages/preprint-details/preprint-details.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ export class PreprintDetailsComponent implements OnInit, OnDestroy {
186186
const preprint = this.preprint();
187187
if (!preprint) return false;
188188

189-
return this.hasAdminAccess() && preprint.datePublished && preprint.isLatestVersion;
189+
const preprintIsRejected = preprint.reviewsState === ReviewsState.Rejected;
190+
191+
return this.hasAdminAccess() && (preprint.datePublished || preprintIsRejected) && preprint.isLatestVersion;
190192
});
191193

192194
editButtonVisible = computed(() => {

0 commit comments

Comments
 (0)