Prevent all local tasks from rendering on public view.

From #4817.