Refactor user authorization check for a single project to avoid querying all user projects See merge request !5102