You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I impersonate a user, the original user is not saved when the change is logged.
I know I am using an older version, but perhaps you have a hint for me on how to work around this issue without having to update your bundle and thereby Symfony.
In the file src/DataDog/AuditBundle/EventSubscriber/AuditSubscriber.php at line 523, the method getRolesNames is called, which returns an array of role names (strings). These roles are iterated over at line 507 and it is checked if the SwitchUserRole is implemented. Since in my version the role ROLE_PREVIOUS_ADMIN is used, the impersonated user is logged.
The text was updated successfully, but these errors were encountered:
Symfony: 5.4.41
AuditBundle: 0.1.22
config.yml
If I impersonate a user, the original user is not saved when the change is logged.
I know I am using an older version, but perhaps you have a hint for me on how to work around this issue without having to update your bundle and thereby Symfony.
In the file src/DataDog/AuditBundle/EventSubscriber/AuditSubscriber.php at line 523, the method getRolesNames is called, which returns an array of role names (strings). These roles are iterated over at line 507 and it is checked if the SwitchUserRole is implemented. Since in my version the role ROLE_PREVIOUS_ADMIN is used, the impersonated user is logged.
The text was updated successfully, but these errors were encountered: