From b1915fa20c830866010eb6d06ce38290d9c451ae Mon Sep 17 00:00:00 2001 From: fogelito Date: Thu, 22 Jan 2026 16:15:52 +0200 Subject: [PATCH] static --- .../Database/Validator/Queries/Projects.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/Appwrite/Utopia/Database/Validator/Queries/Projects.php b/src/Appwrite/Utopia/Database/Validator/Queries/Projects.php index 4ceabdf7bb..09c13fa57e 100644 --- a/src/Appwrite/Utopia/Database/Validator/Queries/Projects.php +++ b/src/Appwrite/Utopia/Database/Validator/Queries/Projects.php @@ -4,20 +4,18 @@ namespace Appwrite\Utopia\Database\Validator\Queries; class Projects extends Base { -// public const ALLOWED_ATTRIBUTES = [ -// 'name', -// 'teamId', -// 'labels', -// 'search' -// ]; - - protected array $allowed = [ + public const ALLOWED_ATTRIBUTES = [ 'name', 'teamId', 'labels', 'search', ]; + /** + * @var array + */ + protected array $allowed = self::ALLOWED_ATTRIBUTES; + /** * Expression constructor * @@ -31,4 +29,9 @@ class Projects extends Base { return true; } + + public function getAllowedAttributes(): array + { + return $this->allowed; + } }