COND:AIDE now observes logged in semantics
[citadel.git] / webcit / auth.c
index eba2e3bc4bce0f34089215bb8031df7881dfba2a..bbb54f32ed8781ed9fb02101330c1b4432c0aea4 100644 (file)
@@ -940,13 +940,13 @@ int ConditionalHaveAccessCreateRoom(StrBuf *Target, WCTemplputParams *TP)
 int ConditionalAide(StrBuf *Target, WCTemplputParams *TP)
 {
        wcsession *WCC = WC;
-       return (WCC != NULL)? (WC->is_aide == 0) : 0;
+       return (WCC != NULL) ? ((WCC->logged_in == 0)||(WC->is_aide == 0)) : 0;
 }
 
 int ConditionalIsLoggedIn(StrBuf *Target, WCTemplputParams *TP) 
 {
        wcsession *WCC = WC;
-       return (WCC != NULL)? (WCC->logged_in == 0) : 0;
+       return (WCC != NULL) ? (WCC->logged_in == 0) : 0;
 
 }