check msghandle for messaging

This commit is contained in:
Simon Smith 2023-09-14 14:55:49 +01:00 committed by GitHub
parent f1c2e307dc
commit 3de12093c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ module.exports.CreateServer = function (parent) {
// Get the user and domain
const user = parent.webserver.users[userid];
if ((user == null) || (user.email == null) || (user.emailVerified !== true)) return;
if ((user == null) || (user.msghandle == null)) return;
const domain = obj.parent.config.domains[user.domain];
if (domain == null) return;