mirror of https://github.com/zulip/zulip.git
Don't allow Zephyr users to send messages when not linked to webathena.
(imported from commit 03362a52e958aa1913ffb8bfa22ba57fa1697d7c)
This commit is contained in:
parent
f0c6b63526
commit
bfd01454f8
|
@ -333,7 +333,9 @@ function compose_error(error_text, bad_input) {
|
|||
$('#error-msg').html(error_text);
|
||||
$("#compose-send-button").removeAttr('disabled');
|
||||
$("#sending-indicator").hide();
|
||||
if (bad_input !== undefined) {
|
||||
bad_input.focus().select();
|
||||
}
|
||||
}
|
||||
|
||||
var send_options;
|
||||
|
@ -649,6 +651,11 @@ exports.validate = function () {
|
|||
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') {
|
||||
return validate_private_message();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue