mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
adding custom domain validation against _APP_CUSTOM_DOMAIN_DENY_LIST
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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')])
|
||||
|
||||
Reference in New Issue
Block a user