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

resource_access_token.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 569fd16f4884a9d6b10f2de78422495b15ca3ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module API
  module Entities
    class ResourceAccessToken < Entities::PersonalAccessToken
      expose :access_level do |token, options|
        options[:resource].member(token.user).access_level
      end
    end
  end
end