From c1c3a7c7ae1299f91182bfc39c16197b4b74f1e6 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 19 Aug 2022 20:31:19 +1200 Subject: [PATCH] Remove redundant exception --- app/config/errors.php | 5 ----- src/Appwrite/Extend/Exception.php | 1 - 2 files changed, 6 deletions(-) diff --git a/app/config/errors.php b/app/config/errors.php index 098622ce24..901b4f15cf 100644 --- a/app/config/errors.php +++ b/app/config/errors.php @@ -88,11 +88,6 @@ return [ 'description' => 'The request cannot be fulfilled with the current protocol. Please check the value of the _APP_OPTIONS_FORCE_HTTPS environment variable.', 'code' => 500, ], - Exception::GENERAL_PERMISSION_INVALID => [ - 'name' => Exception::GENERAL_PERMISSION_INVALID, - 'description' => 'The provided permissions are invalid for this resource type. Documents and files cannot contain a `create` permission.', - 'code' => 400, - ], /** User Errors */ Exception::USER_COUNT_EXCEEDED => [ diff --git a/src/Appwrite/Extend/Exception.php b/src/Appwrite/Extend/Exception.php index aeae11b329..7b2f2644e6 100644 --- a/src/Appwrite/Extend/Exception.php +++ b/src/Appwrite/Extend/Exception.php @@ -50,7 +50,6 @@ class Exception extends \Exception public const GENERAL_CURSOR_NOT_FOUND = 'general_cursor_not_found'; public const GENERAL_SERVER_ERROR = 'general_server_error'; public const GENERAL_PROTOCOL_UNSUPPORTED = 'general_protocol_unsupported'; - public const GENERAL_PERMISSION_INVALID = 'general_permission_invalid'; /** Users */ public const USER_COUNT_EXCEEDED = 'user_count_exceeded';