summaryrefslogtreecommitdiff
path: root/lib/gitlab/auth/result.rb
blob: 3ec5765b6b0802b15bb2d88cfb22f5875e3db301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Gitlab
  module Auth
    class Result < Struct.new(:actor, :project, :type, :authentication_abilities)
      def ci?
        type == :ci
      end

      def success?
        actor.present? || type == :ci
      end
    end
  end
end