mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
add method
This commit is contained in:
@@ -11,18 +11,13 @@ class Projects extends Base
|
||||
'search',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array<string>
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user