adding custom domain validation against _APP_CUSTOM_DOMAIN_DENY_LIST

This commit is contained in:
shimon
2025-03-26 09:07:38 +02:00
parent a9d1f6668f
commit cb2d0dc592
3 changed files with 3 additions and 12 deletions
+2 -5
View File
@@ -408,12 +408,9 @@ App::get('/v1/migrations/appwrite/report')
->inject('project')
->inject('user')
->action(function (array $resources, string $endpoint, string $projectID, string $key, Response $response) {
$appwrite = new Appwrite($projectID, $endpoint, $key);
// var_dump([
// 'projectID' => $projectID,
// 'endpoint' => $endpoint,
// 'key' => $key
// ]);
try {
$report = $appwrite->report($resources);
} catch (\Throwable $e) {
-6
View File
@@ -280,12 +280,6 @@ App::init()
}
if (empty($adminRoles)) {
var_dump([
'location' => 'api.php l291',
'projectId' => !empty($project->getId()) ? $project->getId() : 'NA',
'$user' => $user,
'$team' => $team,
]);
throw new Exception(Exception::USER_UNAUTHORIZED);
}
+1 -1
View File
@@ -494,7 +494,7 @@ class Deletes extends Action
*/
protected function deleteProjectsByTeam(Database $dbForPlatform, callable $getProjectDB, CertificatesAdapter $certificates, Document $document): void
{
var_dump('deleteProjectsByTeam appwrite CE');
$projects = $dbForPlatform->find('projects', [
Query::equal('teamInternalId', [$document->getInternalId()]),
Query::equal('region', [System::getEnv('_APP_REGION', 'default')])