Don't update fields while masquerading
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3068578. -->
Reported by: [joelpittet](https://www.drupal.org/user/160302)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>While masquerading the user login is invoked, this will trigger data from the logged in user to update the person they're masquerading as.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Prevent accidentally clobbering the user data with the masquerader's shib data.</p>
<p>Check if the user is masquerading and check both the old way and the new session way from <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-17"><a href="https://www.drupal.org/project/masquerade/issues/1926074" title="Status: Closed (outdated)">#1926074: Remove {masquerade} table and rely on session flag only</a></span></p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
<h3 id="summary-release-notes">Release notes snippet</h3>
issue