* msgbase.c: CtdlCheckInternetMailPermission(): Do not allow twits to send
authorMichael Hampton <io_error@uncensored.citadel.org>
Sun, 25 Jul 2004 16:20:04 +0000 (16:20 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sun, 25 Jul 2004 16:20:04 +0000 (16:20 +0000)
  Internet mail (they shouldn't be sending ANYTHING at all)

citadel/ChangeLog
citadel/msgbase.c

index 00f83f30377adf0b2a26ffda43a87392736cf0ad..8bed08db78c94b16bf6e19d5c113bcf5a6463444 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 623.10  2004/07/25 16:20:04  error
+ * msgbase.c: CtdlCheckInternetMailPermission(): Do not allow twits to send
+   Internet mail (they shouldn't be sending ANYTHING at all)
+
  Revision 623.9  2004/07/25 16:18:43  error
  * citadel.spec: update version number
 
@@ -5938,3 +5942,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
+
index 32ce0b09302b1e8f1e6efd1d0bde0f9c104f4e80..e09e5d14a00a5badd468f3598ece89c73f2bf07b 100644 (file)
@@ -2470,6 +2470,9 @@ int CtdlDoIHavePermissionToPostInThisRoom(char *errmsgbuf, size_t n) {
  */
 int CtdlCheckInternetMailPermission(struct ctdluser *who) {
 
+       /* Do not allow twits to send Internet mail */
+       if (who->axlevel <= 2) return(0);
+
        /* Globally enabled? */
        if (config.c_restrict == 0) return(1);