BigW Consortium Gitlab

members_helpers.rb 286 Bytes
Newer Older
1 2 3 4
module API
  module Helpers
    module MembersHelpers
      def find_source(source_type, id)
5
        public_send("find_#{source_type}!", id)
6 7 8 9 10 11 12 13
      end

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