Merge pull request from techAPJ/patch-1

Suppress share link for anonymous users
This commit is contained in:
Jeff Atwood 2014-08-22 01:35:16 -07:00
commit fd0a0aafb4

View file

@ -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')