Class: Types::AccessLevels::UserType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/access_levels/user_type.rb

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#avatar_urlObject



56
57
58
# File 'app/graphql/types/access_levels/user_type.rb', line 56

def avatar_url
  object.avatar_url(only_path: false)
end

#redacted_nameObject



52
53
54
# File 'app/graphql/types/access_levels/user_type.rb', line 52

def redacted_name
  object.redacted_name(context[:current_user])
end