class DashOverlord::UseCases::V1::Users::ShowCurrentUser::FindCurrentUser

Public Instance Methods

perform() click to toggle source
# File lib/dash_overlord/use_cases/v1/users/show_current_user/find_current_user.rb, line 8
def perform
  invoke! GetCurrentUser

  return if context.current_user.present?

  failure!(:unauthorized, I18n.t('v1.users.not_logged_in'))
end