Sha256: acd0e16087859a492137ce013eb6121d3c360d1a7982456433d5f5122bfd886c
Contents?: true
Size: 378 Bytes
Versions: 13
Compression:
Stored size: 378 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:).active.first return unless impersonation_log impersonation_log.expire! end end end end
Version data entries
13 entries across 13 versions & 1 rubygems