Merge pull request #9607 from JakubOnderka/oidc-fix-update-role

fix: [oidc] Setting checking if variable is false
pull/9613/head
Jakub Onderka 2024-03-04 18:35:03 +01:00 committed by GitHub
commit 7d719639e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ class Oidc
private function getConfig($config, $default = null)
{
$value = Configure::read("OidcAuth.$config");
if (empty($value)) {
if ($value === null) {
if ($default === null) {
throw new RuntimeException("Config option `OidcAuth.$config` is not set.");
}