Commit 475a5b5a authored by Robert Speicher's avatar Robert Speicher

Merge pull request #9833 from huacnlee/fix/pr-9820-missings

Don't render note edit forms for visitors
parents df0110ba 3ae1dee4
...@@ -59,8 +59,7 @@ ...@@ -59,8 +59,7 @@
.note-text .note-text
= preserve do = preserve do
= markdown(note.note, {no_header_anchors: true}) = markdown(note.note, {no_header_anchors: true})
- unless note.system? - if note_editable?(note)
-# System notes can't be edited
= render 'projects/notes/edit_form', note: note = render 'projects/notes/edit_form', note: note
- if note.attachment.url - if note.attachment.url
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment