MDL-69095 tool_mobile: Display warning if not allowed to use qr login

This commit is contained in:
Juan Leyva 2020-06-30 13:59:15 +02:00 committed by Eloy Lafuente (stronk7)
parent 1019a2b5ba
commit ad25efc776

View file

@ -184,6 +184,13 @@ class subscription implements \renderable, \templatable {
'type' => 'danger', 'message' => get_string('subscriptionfeaturenotapplied', 'tool_mobile')]; 'type' => 'danger', 'message' => get_string('subscriptionfeaturenotapplied', 'tool_mobile')];
} }
break; 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;
} }
} }
} }