Return if comment can be edited by the current user

This commit is contained in:
Maximilian Grundke
2017-08-24 11:47:50 +02:00
parent 9ed5b7cbb1
commit b64809c4b9
3 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
json.array!(@comments) do |comment|
json.extract! comment, :id, :user_id, :file_id, :row, :column, :text, :username, :date, :updated
json.extract! comment, :id, :user_id, :file_id, :row, :column, :text, :username, :date, :updated, :editable
json.url comment_url(comment, format: :json)
end