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

This commit is contained in:
Juan Leyva
2020-07-28 13:49:26 +02:00
parent f575093bc4
commit d58b3df938
@@ -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;
}
}
}