b68069c6b54febbc2dba6c0430ed1cd4d28cb21e hiram Mon Jun 25 10:19:49 2012 -0700 setting the wiki track to be read only diff --git src/hg/hgc/wikiTrack.c src/hg/hgc/wikiTrack.c index 27c667d..332f66f 100644 --- src/hg/hgc/wikiTrack.c +++ src/hg/hgc/wikiTrack.c @@ -204,31 +204,32 @@ "%s: to see " "existing comments.
\n", url, item->descriptionKey, item->descriptionKey); if (NULL != userName) hPrintf("Mark this wiki article as " "watched" " to receive email notices of any comment additions.
\n", url, item->descriptionKey); hPrintf("
\n"); if (NULL == userName) { - offerLogin(item->id, "add comments to items on", WIKI_TRACK_TABLE); + ; /* enforce read-only 2012-06-22 */ + /* offerLogin(item->id, "add comments to items on", WIKI_TRACK_TABLE); */ } else if (emailVerified(TRUE)) /* do print message when not verified */ { startForm("addComments", G_ADD_WIKI_COMMENTS); char idString[128]; safef(idString, ArraySize(idString), "%d", item->id); cgiMakeHiddenVar("i", idString); hPrintf("\n"); webPrintLinkTableStart(); /* first row is a title line */ char label[256]; safef(label, ArraySize(label), "'%s' quick add comments to item '%s'\n", userName, item->name); webPrintWideLabelCell(label, 2); webPrintLinkTableNewRow(); @@ -276,31 +277,32 @@ "}\n", NEW_ITEM_COLOR, NEW_ITEM_COLOR, NEW_ITEM_COLOR, NEW_ITEM_COLOR, NEW_ITEM_COLOR, NEW_ITEM_COLOR); hPrintf("\n"); } void doWikiTrack(char *wikiItemId, char *chrom, int winStart, int winEnd) /* handle item clicks on wikiTrack - may create new items */ { char *userName = NULL; if (wikiTrackEnabled(database, &userName) && sameWord("0", wikiItemId)) { cartWebStart(cart, database, "%s", "User Annotation Track: Create new item"); if (NULL == userName) { - offerLogin(0, "add new items to", WIKI_TRACK_TABLE); + /* enforce read-only 2012-06-22 */ + /* offerLogin(0, "add new items to", WIKI_TRACK_TABLE); */ //cartHtmlEnd(); return; } if (emailVerified(TRUE)) /* do print message when not verified */ { outputJavaScript(); startForm("createItem", G_CREATE_WIKI_ITEM); webPrintLinkTableStart(); /* first row is a title line */ char label[256]; safef(label, ArraySize(label), "Create new item, owner: '%s'\n", userName); webPrintWideLabelCell(label, 2);