From 8e2eff7894dabc8d55fd96c79c94adc0932d90d7 Mon Sep 17 00:00:00 2001 From: Darshan Date: Wed, 11 Jun 2025 16:53:14 +0530 Subject: [PATCH] rollback: auth exception as per `1.8.x` source. --- app/controllers/general.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/general.php b/app/controllers/general.php index 416e6b1e86..0b64f30631 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -1171,6 +1171,9 @@ App::error() break; } break; + case 'Utopia\Database\Exception\Authorization': + $error = new AppwriteException(AppwriteException::USER_UNAUTHORIZED); + break; case 'Utopia\Database\Exception\Timeout': $error = new AppwriteException(AppwriteException::DATABASE_TIMEOUT, previous: $error); break;