mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
Don't allow Zephyr users to send messages when not linked to webathena.
(imported from commit 03362a52e958aa1913ffb8bfa22ba57fa1697d7c)
This commit is contained in:
@@ -333,7 +333,9 @@ function compose_error(error_text, bad_input) {
|
|||||||
$('#error-msg').html(error_text);
|
$('#error-msg').html(error_text);
|
||||||
$("#compose-send-button").removeAttr('disabled');
|
$("#compose-send-button").removeAttr('disabled');
|
||||||
$("#sending-indicator").hide();
|
$("#sending-indicator").hide();
|
||||||
|
if (bad_input !== undefined) {
|
||||||
bad_input.focus().select();
|
bad_input.focus().select();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var send_options;
|
var send_options;
|
||||||
@@ -649,6 +651,11 @@ exports.validate = function () {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($("#zephyr-mirror-error").is(":visible")) {
|
||||||
|
compose_error("You need to link with Webathena before you can send messages!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (exports.composing() === 'private') {
|
if (exports.composing() === 'private') {
|
||||||
return validate_private_message();
|
return validate_private_message();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user