summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2015-12-10 14:36:31 +0200
committerValery Sizov <valery@gitlab.com>2015-12-10 14:39:37 +0200
commite3ee46a13b91a6cefb0efb1841fb24afed37b674 (patch)
tree567e66fbb0a3ecdc81a1a88509d4f8601161fd1e /app/models/note.rb
parentbdc62d704c79b8f4e39dc7b5660b8d657a434895 (diff)
downloadgitlab-ce-e3ee46a13b91a6cefb0efb1841fb24afed37b674.tar.gz
Don't allow to edit award emoji commentsemoji_edit_disallow
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 98c29ddc4cd..0f7efc2f2ab 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -350,7 +350,7 @@ class Note < ActiveRecord::Base
end
def editable?
- !system?
+ !system? && !is_award
end
# Checks if note is an award added as a comment