mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 13:06:40 +08:00
Suppress share link for anonymous users
This commit is contained in:
parent
12b0d5b7bb
commit
6a0309365f
|
@ -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…
Reference in New Issue
Block a user