Fix bugs when anonymous uses member-only shortcuts

This commit is contained in:
Toks
2016-01-13 11:48:25 -05:00
parent e9d79b7ae0
commit af2167ea32
5 changed files with 22 additions and 2 deletions

View File

@@ -560,6 +560,11 @@ Danbooru.Note = {
start: function(e) {
e.preventDefault();
if (Danbooru.meta("current-user-id") == "") {
Danbooru.notice("You must be logged in to edit notes");
return;
}
if (Danbooru.Note.TranslationMode.active) {
return;
}