From 4984194c335591d9b0273d38f0914422aa3e6136 Mon Sep 17 00:00:00 2001 From: Haocen Xu Date: Sat, 30 May 2020 05:48:15 -0400 Subject: [PATCH] Avoid dropzone appearing when it should not by fixing TopNav.isAttachmentReadonly logic --- js/privatebin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/privatebin.js b/js/privatebin.js index 92799379..9708a525 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -4276,7 +4276,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { */ me.isAttachmentReadonly = function() { - return createButtonsDisplayed && $attach.hasClass('hidden'); + return !createButtonsDisplayed || $attach.hasClass('hidden'); } /**