Commit 0f080a94 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Make sure note.system is false if created by user

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 499a1185
......@@ -3,6 +3,7 @@ module Notes
def execute
note = project.notes.new(params[:note])
note.author = current_user
note.system = false
note.save
note
end
......
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