This commit is contained in:
ArnabChatterjee20k committed 2026-04-21 17:32:13 +05:30
1 parent 8108e0bf7f
commit f3f8baca83
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ class Table extends Resource
Database::fromArray($array['database']),
name: $array['name'],
id: $array['id'],
rowSecurity: $array['rowSecurity'] ?? $array['documentSecurity'],
rowSecurity: (bool) ($array['rowSecurity'] ?? $array['documentSecurity'] ?? false),
permissions: $array['permissions'] ?? [],
createdAt: $array['createdAt'] ?? '',
updatedAt: $array['updatedAt'] ?? '',
+3 -1
View File
@@ -928,10 +928,12 @@ class Appwrite extends Source
$response = $this->reader->listTables($database, $queries);
foreach ($response as $table) {
$rowSecurity = $table['rowSecurity'] ?? $table['documentSecurity'] ?? false;
$newTable = self::getEntity($databaseName, [
'id' => $table['$id'],
'name' => $table['name'],
'documentSecurity' => $table['documentSecurity'],
'rowSecurity' => $rowSecurity,
'documentSecurity' => $rowSecurity,
'permissions' => $table['$permissions'],
'createdAt' => $table['$createdAt'],
'updatedAt' => $table['$updatedAt'],