mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:17:08 +08:00
FIX: You need to be logged in to edit wiki posts.
This commit is contained in:
parent
6ca4983463
commit
2b5feda625
|
@ -144,6 +144,10 @@ export default ObjectController.extend(Discourse.SelectedPostsCount, {
|
|||
},
|
||||
|
||||
editPost: function(post) {
|
||||
if (!Discourse.User.current()) {
|
||||
return bootbox.alert(I18n.t('post.controls.edit_anonymous'));
|
||||
}
|
||||
|
||||
this.get('controllers.composer').open({
|
||||
post: post,
|
||||
action: Discourse.Composer.EDIT,
|
||||
|
|
|
@ -1075,6 +1075,7 @@ en:
|
|||
has_liked: "you've liked this post"
|
||||
undo_like: "undo like"
|
||||
edit: "edit this post"
|
||||
edit_anonymous: "Sorry, but you need to be logged in to edit this post."
|
||||
flag: "privately flag this post for attention or send a private notification about it"
|
||||
delete: "delete this post"
|
||||
undelete: "undelete this post"
|
||||
|
|
Loading…
Reference in New Issue
Block a user