Skip to content
Snippets Groups Projects
Commit 2ae10531 authored by Anca Ursachi's avatar Anca Ursachi
Browse files

fix(submissionWizard): Admin should not be able to edit manuscript via link in...

fix(submissionWizard): Admin should not be able to edit manuscript via link in statuses Rejected/Acc
parent 5df44b05
No related branches found
No related tags found
3 merge requests!222Sprint #26,!221Sprint #26 Update,!218fix(submissionWizard): Admin should not be able to edit manuscript via link in…
......@@ -50,6 +50,7 @@ import { onChange, onSubmit, setInitialValues, validate } from './utils'
// #region wizard
const Wizard = ({
step,
status,
history,
journal,
prevStep,
......@@ -64,7 +65,7 @@ const Wizard = ({
journal: { manuscriptTypes = [] },
...rest
}) =>
isLastFragment ? (
isLastFragment && !(status === 'accepted' || status === 'rejected') ? (
<Root className="wizard-root">
<Steps currentStep={step}>
{wizardSteps.map(({ stepTitle }) => (
......@@ -189,6 +190,7 @@ export default compose(
reduxAuthorError,
isLastFragment:
get(fragment, 'id', '') === last(get(collection, 'fragments', [])),
status: get(collection, 'status', ''),
}),
),
withHandlers({
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment