mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-04 11:10:04 -04:00
Merge pull request #2682 from techAPJ/patch-1
Suppress share link for anonymous users
This commit is contained in:
commit
fd0a0aafb4
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue