mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-69095 tool_mobile: Display warning if not allowed to use qr login
This commit is contained in:
parent
1019a2b5ba
commit
ad25efc776
1 changed files with 7 additions and 0 deletions
|
@ -184,6 +184,13 @@ class subscription implements \renderable, \templatable {
|
|||
'type' => 'danger', 'message' => get_string('subscriptionfeaturenotapplied', 'tool_mobile')];
|
||||
}
|
||||
break;
|
||||
// Check QR automatic login.
|
||||
case 'qrautomaticlogin':
|
||||
if ($ms->qrcodetype == \tool_mobile\api::QR_CODE_LOGIN) {
|
||||
$feature['message'] = [
|
||||
'type' => 'danger', 'message' => get_string('subscriptionfeaturenotapplied', 'tool_mobile')];
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue