Skip to content

Commit

Permalink
Merge pull request #9607 from JakubOnderka/oidc-fix-update-role
Browse files Browse the repository at this point in the history
fix: [oidc] Setting checking if variable is false
  • Loading branch information
JakubOnderka committed Mar 4, 2024
2 parents 37cfd37 + 258b521 commit 7d71963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Plugin/OidcAuth/Lib/Oidc.php
Expand Up @@ -458,7 +458,7 @@ private function _findUser(array $settings, array $conditions)
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.");
}
Expand Down

0 comments on commit 7d71963

Please sign in to comment.