projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77f362e
)
COND:ROOM:EDITACCESS now observes (not) logged in
author
Art Cancro
<ajc@citadel.org>
Wed, 5 Jan 2011 04:08:22 +0000
(23:08 -0500)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sun, 4 Sep 2011 13:40:49 +0000
(13:40 +0000)
webcit/roomtokens.c
patch
|
blob
|
history
diff --git
a/webcit/roomtokens.c
b/webcit/roomtokens.c
index 9dc1b1629588a21c864c77650ed7df9e27939abb..66f498c7f9f70789e331c8149d8169c894f02b22 100644
(file)
--- a/
webcit/roomtokens.c
+++ b/
webcit/roomtokens.c
@@
-412,10
+412,14
@@
int ConditionalHaveRoomeditRights(StrBuf *Target, WCTemplputParams *TP)
{
wcsession *WCC = WC;
- return ( (WCC!= NULL) &&
- ((WCC->axlevel >= 6) ||
- ((WCC->CurRoom.RAFlags & UA_ADMINALLOWED) != 0) ||
- (WCC->CurRoom.is_inbox) ));
+ return ( (WCC != NULL)
+ && (WCC->logged_in)
+ && (
+ (WCC->axlevel >= 6)
+ || ((WCC->CurRoom.RAFlags & UA_ADMINALLOWED) != 0)
+ || (WCC->CurRoom.is_inbox)
+ )
+ );
}