fixes #8598 - fixing repository delete

current user was not set during finalize phase