summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-11-17 10:58:17 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-11-17 10:58:17 -0500
commit475a5b5ab72bc92523b9d10cbb2fad013225d6a3 (patch)
tree65b4a9f3b9eca3c9ab73387896b76df26b59d572
parentdf0110ba81a86b3e066c8b703e1c26d6d05a75da (diff)
parent3ae1dee475dbeb9bdf62ed139292cba09b6c98bb (diff)
downloadgitlab-ce-475a5b5ab72bc92523b9d10cbb2fad013225d6a3.tar.gz
Merge pull request #9833 from huacnlee/fix/pr-9820-missings
Don't render note edit forms for visitors
-rw-r--r--app/views/projects/notes/_note.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml
index 88808301985..efa7dd01cc2 100644
--- a/app/views/projects/notes/_note.html.haml
+++ b/app/views/projects/notes/_note.html.haml
@@ -59,8 +59,7 @@
.note-text
= preserve do
= markdown(note.note, {no_header_anchors: true})
- - unless note.system?
- -# System notes can't be edited
+ - if note_editable?(note)
= render 'projects/notes/edit_form', note: note
- if note.attachment.url