mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Remove logs
This commit is contained in:
parent
f4637e1b7d
commit
9a89cc1332
1 changed files with 1 additions and 5 deletions
|
|
@ -2895,11 +2895,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
|
|||
}
|
||||
|
||||
$collection = Authorization::skip(fn () => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId));
|
||||
var_dump('database_' . $database->getInternalId());
|
||||
var_dump($collectionId);
|
||||
var_dump($collection);
|
||||
var_dump($isAPIKey);
|
||||
var_dump($isPrivilegedUser);
|
||||
|
||||
if ($collection->isEmpty() || (!$collection->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) {
|
||||
throw new Exception(Exception::COLLECTION_NOT_FOUND);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue