Formatting

This commit is contained in:
wess
2022-11-16 11:32:37 -05:00
parent 9a88909e24
commit 2f8bf973f2
5 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -1884,7 +1884,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
$collection = Authorization::skip(fn() => $dbForProject->getDocument('database_' . $database->getInternalId(), $collectionId));
if ($collection->isEmpty() || !$collection->getAttribute('enabled')) {
if (!($mode === APP_MODE_ADMIN && Auth::isPrivilegedUser(Authorization::getRoles()))) {
throw new Exception(Exception::COLLECTION_NOT_FOUND);