cmd_TERM: only aides may kill other sessions.
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 23 Jul 2012 13:45:27 +0000 (15:45 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Mon, 23 Jul 2012 13:45:27 +0000 (15:45 +0200)
citadel/citserver.c

index 7e5538b51817757f789466066e61edda741c518e..2b5b72b77f85b2e56ecda82e6697e13e42ca926f 100644 (file)
@@ -710,6 +710,8 @@ void cmd_term(char *cmdbuf)
        int session_num;
        int terminated = 0;
 
+       if (CtdlAccessCheck(ac_aide)) return;
+
        session_num = extract_int(cmdbuf, 0);
 
        terminated = CtdlTerminateOtherSession(session_num);