Avoid render edit_form when visitor can't edit them.
Reverted #9820, github/task_list need a form, textarea for update.
This commit is contained in:
parent
df0110ba81
commit
3ae1dee475
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue