2021-06-24 08:08:07 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class ResourceAccessToken < Entities::PersonalAccessToken
|
|
|
|
expose :access_level do |token, options|
|
2022-01-12 10:13:54 -05:00
|
|
|
options[:resource].member(token.user).access_level
|
2021-06-24 08:08:07 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|