Code changed in jenkins
User: Stephen Connolly
[FIXED JENKINS-31649] Check should be against AccessControlled and Permission.READ
- The previous check was to narrow.
- We now check on AccessControlled (which is implemented by Item)
- We now also check on Permission.READ (which is the generic read permission)
This should allow subtasks who's task may not be an Item to at least implement AccessControlled to alow visibility.
There remains an open question as to whether tasks that are not AccessControlled should ever be visible in the UI
(cherry picked from commit cf1fdf98e435b4c7df54f1a8e958d185f1a0f3d2)