diff options
Diffstat (limited to 'lib/api/helpers/notes_helpers.rb')
-rw-r--r-- | lib/api/helpers/notes_helpers.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/helpers/notes_helpers.rb b/lib/api/helpers/notes_helpers.rb index bed0345a608..c85a38fc18b 100644 --- a/lib/api/helpers/notes_helpers.rb +++ b/lib/api/helpers/notes_helpers.rb @@ -113,6 +113,7 @@ module API end def create_note(noteable, opts) + whitelist_query_limiting authorize!(:create_note, noteable) parent = noteable_parent(noteable) @@ -139,6 +140,10 @@ module API present discussion, with: Entities::Discussion end + + def whitelist_query_limiting + Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab/-/issues/211538') + end end end end |