Sha256: 82bafdff54e781d354e9fe4f8fb1784fdb6af3b57cfaf3569191b377043c70d0
Contents?: true
Size: 383 Bytes
Versions: 31
Compression:
Stored size: 383 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin class ExpireImpersonationJob < ApplicationJob queue_as :default def perform(user, current_user) impersonation_log = Decidim::ImpersonationLog.where(admin: current_user, user: user).active.first return unless impersonation_log impersonation_log.expire! end end end end
Version data entries
31 entries across 31 versions & 1 rubygems