summaryrefslogtreecommitdiff
path: root/lib/api/v3/notes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/v3/notes.rb')
-rw-r--r--lib/api/v3/notes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/v3/notes.rb b/lib/api/v3/notes.rb
index 4f8e0eff4ff..009ec5c6bbd 100644
--- a/lib/api/v3/notes.rb
+++ b/lib/api/v3/notes.rb
@@ -79,7 +79,7 @@ module API
noteable = user_project.send(noteables_str.to_sym).find(params[:noteable_id])
if can?(current_user, noteable_read_ability_name(noteable), noteable)
- if params[:created_at] && (current_user.is_admin? || user_project.owner == current_user)
+ if params[:created_at] && (current_user.admin? || user_project.owner == current_user)
opts[:created_at] = params[:created_at]
end