diff --git a/app/config/errors.php b/app/config/errors.php index 098622ce2..901b4f15c 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 aeae11b32..7b2f2644e 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';