Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions app/controllers/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,7 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw
->inject('dbForPlatform')
->inject('queueForCertificates')
->inject('platform')
->inject('authorization')
->action(function (Request $request, Document $console, Database $dbForPlatform, Certificate $queueForCertificates, array $platform, Authorization $authorization) {
->action(function (Request $request, Document $console, Database $dbForPlatform, Certificate $queueForCertificates, array $platform) {
$hostname = $request->getHostname();
$cache = Config::getParam('hostnames', []);
$platformHostnames = $platform['hostnames'] ?? [];
Expand Down Expand Up @@ -1066,7 +1065,7 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw
}

// 4. Check/create rule (requires DB access)
$authorization->disable();
Authorization::disable();
try {
// TODO: (@Meldiron) Remove after 1.7.x migration
$isMd5 = System::getEnv('_APP_RULES_FORMAT') === 'md5';
Expand Down Expand Up @@ -1122,7 +1121,7 @@ function router(App $utopia, Database $dbForPlatform, callable $getProjectDB, Sw
} finally {
$cache[$domain->get()] = true;
Config::setParam('hostnames', $cache);
$authorization->reset();
Authorization::reset();
}
});

Expand Down
Loading