Fix template problems for anonymous users accessing shared projects