Skip to content

Handle both admin and non-admin user names in update user template

Created by: JosephKiranBabu

When an admin user goes to the UpdateUser view of a different user, the template gets only one username which is of the user being updated. This causes the admin user's name being overwritten in the header section thus making it appear that the user is modifying themselves and not the admin. This can cause confusion to the admin user.

Explicitly getting the name of the user that made the request ensures that we always get the correct username.

Signed-off-by: Joseph Nuthalapati njoseph@thoughtworks.com

Merge request reports

Loading