[mirotalksfu] - if host protected, guest can't create new room

هذا الالتزام موجود في:
Miroslav Pejic
2022-02-09 18:13:24 +01:00
الأصل eef4e229a3
التزام ec91b959bc

عرض الملف

@@ -94,10 +94,10 @@ app.get(['/login'], (req, res) => {
// set new room name and join
app.get(['/newroom'], (req, res) => {
if (hostCfg.authenticated) {
res.sendFile(path.join(__dirname, '../../', 'public/view/newroom.html'));
} else {
if (hostCfg.protected == true) {
res.sendFile(path.join(__dirname, '../../', 'public/view/login.html'));
} else {
res.sendFile(path.join(__dirname, '../../', 'public/view/newroom.html'));
}
});