17304 view time entries permission not respected on wp spent hours

[``* `#17304` View time entries permission not respected for work package's spent hours attribute``](https://community.openproject.org/work_packages/17304)
This should be redundant to what you have done below but should save a lengthy db query below, so ok.