Meets #15354: Fix user is shown as deleted incorrectly

[``* `#15354` User is shown as deleted incorrectly``](http://openproject.org/work_packages/15354)
changed the commit to use lets and befores