added conditions for view work in show job details.
Merge pull request #825 from nla/dsc-832

added conditions for view work in show job details.