mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
updated
This commit is contained in:
1 parent
8108e0bf7f
commit
f3f8baca83
2 files changed
+4
-2
No files matched your search
@@ -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'] ?? '',
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in new issue
Block a user