blob: a50ea0b52aa2fb11282a58a2a1431abba91f7d93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# rubocop:disable GitlabSecurity/PublicSend
module API
module Helpers
module MembersHelpers
def find_source(source_type, id)
public_send("find_#{source_type}!", id) # rubocop:disable GitlabSecurity/PublicSend
end
def authorize_admin_source!(source_type, source)
authorize! :"admin_#{source_type}", source
end
end
end
end
|