26501d3ac1d4eea1d3c539dbbd13e15e46737759
hiram
  Tue Sep 24 11:57:57 2019 -0700
correctly recognize the "tableBrowser off" entry in trackDb for protected tables refs #24208

diff --git src/hg/hubApi/apiUtils.c src/hg/hubApi/apiUtils.c
index 2e4523d..67ed571 100644
--- src/hg/hubApi/apiUtils.c
+++ src/hg/hubApi/apiUtils.c
@@ -603,15 +603,26 @@
  *	TRUE when has data, FALSE if has no data
  * When NO trackDb, can't tell at this point, will check that later
  */
 {
 if (tdb)
     {
     if (tdbIsContainer(tdb) || tdbIsComposite(tdb)
 	|| tdbIsCompositeView(tdb) || tdbIsSuper(tdb))
 	return FALSE;
     else
 	return TRUE;
     }
 else
     return TRUE;	/* might be true */
 }
+
+boolean protectedTrack(struct trackDb *tdb)
+/* determine if track is off-limits protected data */
+{
+boolean ret = FALSE;
+
+char *tbOff = trackDbSetting(tdb, "tableBrowser");
+if (tbOff && startsWithWord("off", tbOff))
+        ret = TRUE;
+return ret;
+}