mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: emit Project.wafEnabled for SDK 27 migration client
This commit is contained in:
1 parent
80ec23caa6
commit
2f152910c9
1 file changed
+7
@@ -199,6 +199,12 @@ class Project extends Model
|
|||||||
'default' => '',
|
'default' => '',
|
||||||
'example' => self::TYPE_DATETIME_EXAMPLE,
|
'example' => self::TYPE_DATETIME_EXAMPLE,
|
||||||
])
|
])
|
||||||
|
->addRule('wafEnabled', [
|
||||||
|
'type' => self::TYPE_BOOLEAN,
|
||||||
|
'description' => 'Whether WAF enforcement is enabled for the project.',
|
||||||
|
'default' => false,
|
||||||
|
'example' => false,
|
||||||
|
])
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -234,6 +240,7 @@ class Project extends Model
|
|||||||
$this->expandProtocols($document);
|
$this->expandProtocols($document);
|
||||||
$this->expandAuthMethods($document);
|
$this->expandAuthMethods($document);
|
||||||
$this->expandConsoleAccessedAt($document);
|
$this->expandConsoleAccessedAt($document);
|
||||||
|
$document->setAttribute('wafEnabled', (bool) $document->getAttribute('wafEnabled', false));
|
||||||
|
|
||||||
return $document;
|
return $document;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user