projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b32f511
)
COND:AIDE now observes logged in semantics
author
Art Cancro
<ajc@citadel.org>
Tue, 25 Jan 2011 03:30:57 +0000
(22:30 -0500)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 4 Sep 2011 14:04:24 +0000
(14:04 +0000)
webcit/auth.c
patch
|
blob
|
history
diff --git
a/webcit/auth.c
b/webcit/auth.c
index eba2e3bc4bce0f34089215bb8031df7881dfba2a..bbb54f32ed8781ed9fb02101330c1b4432c0aea4 100644
(file)
--- a/
webcit/auth.c
+++ b/
webcit/auth.c
@@
-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;
}