Skip to content

Commit

Permalink
Revert status code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RichDom2185 committed Jan 22, 2024
1 parent 168a75c commit b61e9cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cadet/assessments/assessments.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b61e9cf

Please sign in to comment.