Only [global] admin user sees 'synchronize all logbooks'

SVN revision: 742
This commit is contained in:
Stefan Ritt 2004-02-04 08:25:06 +00:00
parent 4ce8292a5e
commit bdda2272e8

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.233 2004/02/04 08:25:06 midas
Only [global] admin user sees 'synchronize all logbooks'
Revision 1.232 2004/02/03 12:31:57 midas Revision 1.232 2004/02/03 12:31:57 midas
Changed typo Changed typo
@ -14112,11 +14115,15 @@ void show_selection_page()
rsprintf("</td></tr>\n"); rsprintf("</td></tr>\n");
if (getcfg("global", "mirror server", str)) { if (getcfg("global", "mirror server", str)) {
rsprintf("<tr>\n");
rsprintf("<td colspan=13 class=\"seltitle\">\n"); /* only admin user sees synchronization link */
rsprintf("<a href=\"?cmd=Synchronize\">%s</a></td>\n", if (!getcfg("global", "Admin user", str) || strcmp(str, getparam("unm")) == 0) {
loc("Synchronize all logbooks")); rsprintf("<tr>\n");
rsprintf("</tr>\n"); rsprintf("<td colspan=13 class=\"seltitle\">\n");
rsprintf("<a href=\"?cmd=Synchronize\">%s</a></td>\n",
loc("Synchronize all logbooks"));
rsprintf("</tr>\n");
}
} }