Sandbox complete needs to call AccountSwitcherInterface::switchBack

Created on 29 July 2024, 4 months ago
Updated 31 July 2024, 4 months ago

Problem/Motivation

A BatchOperation script has an option to switch user to make the operation look like it was performed by a specific user. However at the end it never switches back to the current user. This is largely only an issue with running a BatchOperation via the UI.

That class AccountSwitcherInterface has a method switchBack() which should be called during sandbox complete.

Hopefully it can be called safely regardless of if switchUser was called, or there might be a flag to look for.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024