From 5e579db5183f95f69f595d98258c81c5dd05490b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 14 Feb 2016 14:08:47 -0800 Subject: [PATCH] Remove edit menu item if posting is disabled. --- src/Posting/QR.oekaki.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Posting/QR.oekaki.coffee b/src/Posting/QR.oekaki.coffee index 4e994ea14..bb36ccab1 100644 --- a/src/Posting/QR.oekaki.coffee +++ b/src/Posting/QR.oekaki.coffee @@ -15,10 +15,9 @@ QR.oekaki = open: (post) -> QR.oekaki.menu.post = post {file} = post - !!file and (file.isImage or file.isVideo) + QR.postingIsEnabled and !!file and (file.isImage or file.isVideo) editFile: -> - return unless QR.postingIsEnabled {post} = QR.oekaki.menu QR.quote.call post.nodes.root {isVideo} = post.file