mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
getCollectionId
This commit is contained in:
Generated
+4
-4
@@ -3854,12 +3854,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/utopia-php/database.git",
|
||||
"reference": "89be130a4ba1b6317e00d4f0198231e54c9a5c42"
|
||||
"reference": "d77451fe435f0cfeda96a4fa185b95f08c038ee3"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/89be130a4ba1b6317e00d4f0198231e54c9a5c42",
|
||||
"reference": "89be130a4ba1b6317e00d4f0198231e54c9a5c42",
|
||||
"url": "https://api.github.com/repos/utopia-php/database/zipball/d77451fe435f0cfeda96a4fa185b95f08c038ee3",
|
||||
"reference": "d77451fe435f0cfeda96a4fa185b95f08c038ee3",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3936,7 +3936,7 @@
|
||||
"source": "https://github.com/utopia-php/database/tree/joins8",
|
||||
"issues": "https://github.com/utopia-php/database/issues"
|
||||
},
|
||||
"time": "2026-03-23T08:10:06+00:00"
|
||||
"time": "2026-03-23T15:34:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "utopia-php/detector",
|
||||
|
||||
+2
-2
@@ -105,10 +105,10 @@ class XList extends Action
|
||||
|
||||
$joins = Query::getJoinQueries($queries, false);
|
||||
foreach ($joins as $join) {
|
||||
$col = $authorization->skip(fn () => $dbForProject->getDocument('database_' . $database->getSequence(), $join->getCollection()));
|
||||
$col = $authorization->skip(fn () => $dbForProject->getDocument('database_' . $database->getSequence(), $join->getCollectionId()));
|
||||
|
||||
if ($col->isEmpty() || (!$col->getAttribute('enabled', false) && !$isAPIKey && !$isPrivilegedUser)) {
|
||||
throw new Exception($this->getParentNotFoundException(), params: [$join->getCollection()]);
|
||||
throw new Exception($this->getParentNotFoundException(), params: [$join->getCollectionId()]);
|
||||
}
|
||||
|
||||
$collectionTableId = 'database_' . $database->getSequence() . '_collection_' . $col->getSequence();
|
||||
|
||||
Reference in New Issue
Block a user