Dont show reply button if user is not signed in

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-06-24 13:35:50 +03:00
parent a49d45db41
commit 8c67c339dc
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ module NotesHelper
end
def link_to_reply_diff(note)
return unless current_user
data = {
noteable_type: note.noteable_type,
noteable_id: note.noteable_id,