Skip to content
Snippets Groups Projects
Commit 3ae1dee4 authored by Jason Lee's avatar Jason Lee
Browse files

Avoid render edit_form when visitor can't edit them.

Reverted #9820, github/task_list need a form, textarea for update.
parent df0110ba
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment