47f0e26225da2aa7f9d3f66d645c446a7ce70c5b
hiram
  Tue May 25 09:51:43 2021 -0700
instead of a blanked elimination of omim table names, check for the noGenome trackDb setting refs #24208

diff --git src/hg/hubApi/apiUtils.c src/hg/hubApi/apiUtils.c
index 472a4a5..049379f 100644
--- src/hg/hubApi/apiUtils.c
+++ src/hg/hubApi/apiUtils.c
@@ -616,57 +616,57 @@
 else
     return TRUE;	/* might be true */
 }
 
 boolean protectedTrack(struct trackDb *tdb, char *tableName)
 /* determine if track is off-limits protected data */
 {
 boolean ret = FALSE;
 
 /* this is a fixed list for now since there are so few and this
  * takes care of the situation where the tableName might be for a table
  * that has no trackDb entry
  */
 if (sameOk(tableName, "cosmicRegions"))
   ret = TRUE;
-else if (startsWith("omim", tableName))
-  ret = TRUE;
 else if (sameOk(tableName, "decipherRaw"))
   ret = TRUE;
 else if (sameOk(tableName, "knownToDecipher"))
   ret = TRUE;
 else if (sameOk(tableName, "knownCanonToDecipher"))
   ret = TRUE;
 else if (sameOk(tableName, "decipherSnvsRaw"))
   ret = TRUE;
 else if (sameOk(tableName, "lovd"))
   ret = TRUE;
 else if (sameOk(tableName, "lovdShort"))
   ret = TRUE;
 else if (sameOk(tableName, "lovdLong"))
   ret = TRUE;
 else if (sameOk(tableName, "lovdComp"))
   ret = TRUE;
 else if (sameOk(tableName, "hgmd"))
   ret = TRUE;
 else
     {
     if (tdb)	/* may not have a tdb at this time */
 	{
 	char *tbOff = trackDbSetting(tdb, "tableBrowser");
 	if (tbOff && startsWithWord("off", tbOff))
 	    ret = TRUE;
+	if (tbOff && startsWithWord("noGenome", tbOff))
+	    ret = TRUE;
 	}
     }
 return ret;
 }
 
 boolean isWiggleDataTable(char *type)
 /* is this a wiggle data track table */
 {
 if (startsWith("wig", type))
     {
     if (startsWith("wigMaf", type))
 	return FALSE;
     else
 	return TRUE;
     }