Simplified Permission handling
This commit is contained in:
parent
0dec65f979
commit
24614f1fe9
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,6 @@ App::init(function ($utopia, $request, $response, $console, $project, $dbForCons
|
||||||
'domain' => $domain->get(),
|
'domain' => $domain->get(),
|
||||||
]);
|
]);
|
||||||
$certificate = $dbForConsole->createDocument('certificates', $certificate);
|
$certificate = $dbForConsole->createDocument('certificates', $certificate);
|
||||||
Authorization::enable();
|
|
||||||
|
|
||||||
Console::info('Issuing a TLS certificate for the master domain (' . $domain->get() . ') in a few seconds...');
|
Console::info('Issuing a TLS certificate for the master domain (' . $domain->get() . ') in a few seconds...');
|
||||||
|
|
||||||
|
@ -63,10 +62,11 @@ App::init(function ($utopia, $request, $response, $console, $project, $dbForCons
|
||||||
'validateTarget' => false,
|
'validateTarget' => false,
|
||||||
'validateCNAME' => false,
|
'validateCNAME' => false,
|
||||||
]);
|
]);
|
||||||
} else {
|
|
||||||
Authorization::enable(); // ensure authorization is reenabled
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$domains[$domain->get()] = true;
|
$domains[$domain->get()] = true;
|
||||||
|
|
||||||
|
Authorization::reset(); // ensure authorization is re-enabled
|
||||||
}
|
}
|
||||||
Config::setParam('domains', $domains);
|
Config::setParam('domains', $domains);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue