mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
static
This commit is contained in:
@@ -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<string>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user