* msgbase.c: CtdlCheckInternetMailPermission(): Do not allow twits to send
[citadel.git] / citadel / msgbase.c
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);