X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Ficonbar.c;h=5519100dc0de27c93c19379621ab93395225ee1c;hb=b5f6cba14c339fc66508fac3423e19c8061290a8;hp=a8c7b69c5051737d3a668c9843aa0aada191605b;hpb=e31e6ce7b3b510903120ad456c99d51faaddfc31;p=citadel.git diff --git a/webcit/iconbar.c b/webcit/iconbar.c index a8c7b69c5..5519100dc 100644 --- a/webcit/iconbar.c +++ b/webcit/iconbar.c @@ -197,12 +197,20 @@ void commit_iconbar(void) { } +/* + * Display the icon bar as long as we have an active session, + * and either the user is logged in or the server allows guest mode. + */ void tmplput_iconbar(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; - if ((WCC != NULL) && (WCC->logged_in)) { - DoTemplate(HKEY("iconbar"), NULL, &NoCtx); + if ( (WCC != NULL) + && ( (WCC->logged_in) + || (WCC->serv_info->serv_supports_guest) + ) + ) { + DoTemplate(HKEY("iconbar"), NULL, &NoCtx); } }