Show correct dialog when editing a user from tree menu

Ticket:	#3345