Distinct auth from perm

This commit is contained in:
2024-07-28 02:57:45 +02:00
parent 93e5cebce0
commit 73c7dc1b5e
+1 -1
View File
@@ -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);
}