Skip to content

Commit 3328c4a

Browse files
authored
Merge pull request #979 from nsemets/hotfix/ENG-11002
[ENG-11002] Allow for new version on a rejected preprint
2 parents 89bbee5 + 84cc97d commit 3328c4a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)