diff --git a/frontend/__test__/project/edit/Requiredfiles.test.tsx b/frontend/__test__/project/edit/Requiredfiles.test.tsx index 8565ce27..8ba02667 100644 --- a/frontend/__test__/project/edit/Requiredfiles.test.tsx +++ b/frontend/__test__/project/edit/Requiredfiles.test.tsx @@ -15,7 +15,7 @@ describe('Requiredfiles', () => { files={["First", "Second"]} setFiles={jest.fn()} translations={translations.en} - /> + file_status={["+", "-"]} setFileStatus={jest.fn()}/> ); // check that the required files were rendered properly diff --git a/frontend/app/[locale]/components/CourseControls.tsx b/frontend/app/[locale]/components/CourseControls.tsx index cd86fe99..a7d097a9 100644 --- a/frontend/app/[locale]/components/CourseControls.tsx +++ b/frontend/app/[locale]/components/CourseControls.tsx @@ -73,11 +73,14 @@ const CourseControls = ({selectedYear, onYearChange}) => { {t("view_archive")} - - - + {user?.role === 1 ? ( + + + + ) : null + }