Dont show reply button if user is not signed in
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
a49d45db41
commit
8c67c339dc
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue