From b61e9cfa5f74b65dd67bd70e7aa069063818625e Mon Sep 17 00:00:00 2001 From: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> Date: Mon, 22 Jan 2024 15:04:01 +0800 Subject: [PATCH] Revert status code changes --- lib/cadet/assessments/assessments.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cadet/assessments/assessments.ex b/lib/cadet/assessments/assessments.ex index 31c556eee..51e50df13 100644 --- a/lib/cadet/assessments/assessments.ex +++ b/lib/cadet/assessments/assessments.ex @@ -314,7 +314,7 @@ defmodule Cadet.Assessments do assessment = assessment |> Map.put(:questions, questions) {:ok, assessment} else - {:error, {:unauthorized, "Assessment not open"}} + {:error, {:forbidden, "Assessment not open"}} end end @@ -1369,7 +1369,7 @@ defmodule Cadet.Assessments do a boolean which is false by default. The return value is {:ok, submissions} if no errors, else it is {:error, - {:unauthorized, "Forbidden."}} + {:forbidden, "Forbidden."}} """ @spec all_submissions_by_grader_for_index(CourseRegistration.t()) :: {:ok,