Add check for authorization to getProjects()