]> code.citadel.org Git - citadel.git/blobdiff - citadel/citserver.c
cmd_TERM: only aides may kill other sessions.
[citadel.git] / citadel / citserver.c
index 088b584e1107a751cc5b935f4e08c8c858ea5f58..2b5b72b77f85b2e56ecda82e6697e13e42ca926f 100644 (file)
@@ -4,18 +4,12 @@
  * Copyright (c) 1987-2011 by the citadel.org team
  *
  * This program is open source software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
+ * it under the terms of the GNU General Public License, version 3.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
 #include "sysdep.h"
@@ -716,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);