mirror of
https://github.com/moodle/moodle.git
synced 2025-02-19 15:45:59 +01:00
MDL-78849 user: correct logical operator behaviour for guest button.
Apart from being banned per MDL-74990, it causes a subtle bug here due to operator precedence. Co-authored-by: Tom Mayfield <tmayfield@costrack.com>
This commit is contained in:
parent
935c2509f1
commit
ca991dbe29
@ -90,7 +90,7 @@ class login implements renderable, templatable {
|
||||
$languagedata = new \core\output\language_menu($PAGE);
|
||||
|
||||
$this->languagemenu = $languagedata->export_for_action_menu($OUTPUT);
|
||||
$this->canloginasguest = $CFG->guestloginbutton and !isguestuser();
|
||||
$this->canloginasguest = $CFG->guestloginbutton && !isguestuser();
|
||||
$this->canloginbyemail = !empty($CFG->authloginviaemail);
|
||||
$this->cansignup = $CFG->registerauth == 'email' || !empty($CFG->registerauth);
|
||||
if ($CFG->rememberusername == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user