Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
256b1581135e
Commit
475a5b5a
authored
Nov 17, 2015
by
Robert Speicher
Browse files
Merge pull request #9833 from huacnlee/fix/pr-9820-missings
Don't render note edit forms for visitors
parents
7fbedba54f50
4fbbc74ee474
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/views/projects/notes/_note.html.haml
View file @
256b1581
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment