summaryrefslogtreecommitdiff
path: root/lib/api/helpers/members_helpers.rb
diff options
context:
space:
mode:
authorBrian Neel <brian@gitlab.com>2017-08-03 22:20:34 -0400
committerBrian Neel <brian@gitlab.com>2017-08-08 10:50:54 -0400
commit9770c57fab0315865a33c8b6df269eded0d57b5c (patch)
tree5a7c7a9fccbce5ef3ccf6b02b1297aace41101fd /lib/api/helpers/members_helpers.rb
parentb612a47da0e0225332a59ab961206f84602ad629 (diff)
downloadgitlab-ce-9770c57fab0315865a33c8b6df269eded0d57b5c.tar.gz
Re-enable SqlInjection and CommandInjection
Diffstat (limited to 'lib/api/helpers/members_helpers.rb')
-rw-r--r--lib/api/helpers/members_helpers.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/helpers/members_helpers.rb b/lib/api/helpers/members_helpers.rb
index d9cae1501f8..a50ea0b52aa 100644
--- a/lib/api/helpers/members_helpers.rb
+++ b/lib/api/helpers/members_helpers.rb
@@ -1,8 +1,10 @@
+# rubocop:disable GitlabSecurity/PublicSend
+
module API
module Helpers
module MembersHelpers
def find_source(source_type, id)
- public_send("find_#{source_type}!", id)
+ public_send("find_#{source_type}!", id) # rubocop:disable GitlabSecurity/PublicSend
end
def authorize_admin_source!(source_type, source)