From c5b415af5973ebbb181ef32cb02ebe6f7d25c081 Mon Sep 17 00:00:00 2001 From: fogelito Date: Thu, 22 Jan 2026 17:05:19 +0200 Subject: [PATCH] add method --- .../Utopia/Database/Validator/Queries/Projects.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Projects.php b/src/Appwrite/Utopia/Database/Validator/Queries/Projects.php index 09c13fa57e..1c624d00c6 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Projects.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Projects.php @@ -11,18 +11,13 @@ class Projects extends Base 'search', ]; - /** - * @var array - */ - protected array $allowed = self::ALLOWED_ATTRIBUTES; - /** * Expression constructor * */ public function __construct() { - parent::__construct('projects', $this->allowed); + parent::__construct('projects', $this->getAllowedAttributes()); } public function isSelectQueryAllowed(): bool @@ -32,6 +27,6 @@ class Projects extends Base public function getAllowedAttributes(): array { - return $this->allowed; + return self::ALLOWED_ATTRIBUTES; } }