Function isPublicAccessEnabled was missing