Function fetchProjectDetails

Fetches details for a given project.

If called from scratchpad or if the user does not have permission to access the project.