Browse Source

Avoid dropzone appearing when it should not by fixing
TopNav.isAttachmentReadonly logic

Haocen Xu 6 years ago
parent
commit
4984194c33
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/privatebin.js

+ 1 - 1
js/privatebin.js

@@ -4276,7 +4276,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
          */
         me.isAttachmentReadonly = function()
         {
-            return createButtonsDisplayed && $attach.hasClass('hidden');
+            return !createButtonsDisplayed || $attach.hasClass('hidden');
         }
 
         /**