Welcome to mirror list, hosted at ThFree Co, Russian Federation.

members_helpers.rb « helpers « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9cae1501f8b2f565cb49b25ef849c16c10692a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module API
  module Helpers
    module MembersHelpers
      def find_source(source_type, id)
        public_send("find_#{source_type}!", id)
      end

      def authorize_admin_source!(source_type, source)
        authorize! :"admin_#{source_type}", source
      end
    end
  end
end