Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fix reversed logic when checking "enable elevated login" (fixes issue…
Browse files Browse the repository at this point in the history
… #2835)
  • Loading branch information
zegenie committed Dec 26, 2018
1 parent 645935e commit 64c6d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/modules/configuration/templates/_user.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<tr>
<td><label for="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_yes"><?= __('Enable elevated login for configuration section'); ?></label></td>
<td>
<input type="radio" name="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>" class="fancycheckbox" <?php if ($access_level != \thebuggenie\core\framework\Settings::ACCESS_FULL): ?> disabled<?php endif; ?> id="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_yes" value=1<?php if (\thebuggenie\core\framework\Settings::isElevatedLoginRequired()): ?> checked<?php endif; ?>><label for="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_yes"><?= fa_image_tag('check-square', ['class' => 'checked'], 'far') . fa_image_tag('square', ['class' => 'unchecked'], 'far') . __('Yes'); ?></label>
<input type="radio" name="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>" class="fancycheckbox" <?php if ($access_level != \thebuggenie\core\framework\Settings::ACCESS_FULL): ?> disabled<?php endif; ?> id="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_no" value=0<?php if (!\thebuggenie\core\framework\Settings::isElevatedLoginRequired()): ?> checked<?php endif; ?>><label for="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_no"><?= fa_image_tag('check-square', ['class' => 'checked'], 'far') . fa_image_tag('square', ['class' => 'unchecked'], 'far') . __('No'); ?></label>
<input type="radio" name="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>" class="fancycheckbox" <?php if ($access_level != \thebuggenie\core\framework\Settings::ACCESS_FULL): ?> disabled<?php endif; ?> id="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_yes" value=0<?php if (\thebuggenie\core\framework\Settings::isElevatedLoginRequired()): ?> checked<?php endif; ?>><label for="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_yes"><?= fa_image_tag('check-square', ['class' => 'checked'], 'far') . fa_image_tag('square', ['class' => 'unchecked'], 'far') . __('Yes'); ?></label>
<input type="radio" name="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>" class="fancycheckbox" <?php if ($access_level != \thebuggenie\core\framework\Settings::ACCESS_FULL): ?> disabled<?php endif; ?> id="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_no" value=1<?php if (!\thebuggenie\core\framework\Settings::isElevatedLoginRequired()): ?> checked<?php endif; ?>><label for="<?= \thebuggenie\core\framework\Settings::SETTING_ELEVATED_LOGIN_DISABLED; ?>_no"><?= fa_image_tag('check-square', ['class' => 'checked'], 'far') . fa_image_tag('square', ['class' => 'unchecked'], 'far') . __('No'); ?></label>
<?= config_explanation(
__('If this is turned on, users will have to re-enter their password to go to the configuration section')
); ?>
Expand Down

0 comments on commit 64c6d67

Please sign in to comment.