FIX: You need to be logged in to edit wiki posts.

This commit is contained in:
Robin Ward 2014-08-20 11:04:45 -04:00
parent 6ca4983463
commit 2b5feda625
2 changed files with 5 additions and 0 deletions

View File

@ -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,

View File

@ -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"