From 6a0309365fa0d1f307c070931eb191fc2d120f2c Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Fri, 22 Aug 2014 13:53:28 +0530 Subject: [PATCH] Suppress share link for anonymous users --- app/assets/javascripts/discourse/views/post-menu.js.es6 | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/views/post-menu.js.es6 b/app/assets/javascripts/discourse/views/post-menu.js.es6 index c69230902b7..e3fa0766955 100644 --- a/app/assets/javascripts/discourse/views/post-menu.js.es6 +++ b/app/assets/javascripts/discourse/views/post-menu.js.es6 @@ -223,6 +223,7 @@ export default Discourse.View.extend({ // Share button buttonForShare: function(post) { + if (!Discourse.User.current()) return; var options = { shareUrl: post.get('shareUrl'), postNumber: post.get('post_number')