Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
413 B
Raw Blame
# frozen_string_literal: true

module Admin
  class SsoIdentityBlocksController < Admin::BaseController
    def destroy
      block = SsoIdentityBlock.find(params[:id])
      SsoIdentityBlock.transaction do
        SsoAuditLog.log_identity_unblocked!(block: block, actor: Current.user, request: request)
        block.destroy!
      end
      redirect_to admin_users_path, notice: t(".success")
    end
  end
end