Skip to content

Commit 8a83a2e

Browse files
committed
Remove dbg
1 parent 9d3d219 commit 8a83a2e

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/Database/Adapter/MariaDB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ public function updateDocument(string $collection, string $id, Document $documen
952952
WHERE _document = :_uid
953953
{$this->getTenantQuery($collection)}
954954
";
955-
var_dump($sql);
955+
956956
$sql = $this->trigger(Database::EVENT_PERMISSIONS_READ, $sql);
957957

958958
/**

src/Database/Database.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4120,13 +4120,6 @@ public function updateDocument(string $collection, string $id, Document $documen
41204120

41214121
$skipPermissionsUpdate = $old->getPermissions() === $document->getPermissions();
41224122

4123-
if(!$skipPermissionsUpdate){
4124-
var_dump('check permissiosnss permissiosnss permissiosnss permissiosnss');
4125-
var_dump($skipPermissionsUpdate);
4126-
var_dump($old->getPermissions());
4127-
var_dump($document->getPermissions());
4128-
}
4129-
41304123
$document = \array_merge($old->getArrayCopy(), $document->getArrayCopy());
41314124
$document['$collection'] = $old->getAttribute('$collection'); // Make sure user doesn't switch collection ID
41324125
$document['$createdAt'] = $old->getCreatedAt(); // Make sure user doesn't switch createdAt

0 commit comments

Comments
 (0)