From 73c7dc1b5e5f13ebf542e9bc4df8c6caa5fcfdf7 Mon Sep 17 00:00:00 2001 From: Kilian Hofmann Date: Sun, 28 Jul 2024 02:57:45 +0200 Subject: [PATCH] Distinct auth from perm --- exam/classes/ApiError/ApiError.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exam/classes/ApiError/ApiError.php b/exam/classes/ApiError/ApiError.php index 410679f..feb2fd7 100644 --- a/exam/classes/ApiError/ApiError.php +++ b/exam/classes/ApiError/ApiError.php @@ -30,7 +30,7 @@ class ApiError extends Exception public static function unauthorized(string $message) { return new ApiError(json_encode([ - "code" => "Unauthorized", + "code" => "NotAllowed", "message" => $message, ]), 401); }