Suppress share link for anonymous users

This commit is contained in:
Arpit Jalan 2014-08-22 13:53:28 +05:30
parent 12b0d5b7bb
commit 6a0309365f

View File

@ -223,6 +223,7 @@ export default Discourse.View.extend({
// Share button // Share button
buttonForShare: function(post) { buttonForShare: function(post) {
if (!Discourse.User.current()) return;
var options = { var options = {
shareUrl: post.get('shareUrl'), shareUrl: post.get('shareUrl'),
postNumber: post.get('post_number') postNumber: post.get('post_number')