[mirotalksfu] - fix
هذا الالتزام موجود في:
@@ -44,7 +44,7 @@ dependencies: {
|
|||||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.5.19
|
* @version 1.5.20
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -488,7 +488,7 @@ function startServer() {
|
|||||||
isPeerValid = await isAuthPeer(username, password);
|
isPeerValid = await isAuthPeer(username, password);
|
||||||
isPeerPresenter = presenter === '1' || presenter === 'true';
|
isPeerPresenter = presenter === '1' || presenter === 'true';
|
||||||
|
|
||||||
if (isPeerPresenter) {
|
if (isPeerPresenter && !hostCfg.users_from_db) {
|
||||||
const roomAllowedForUser = isRoomAllowedForUser('Direct Join with token', username, room);
|
const roomAllowedForUser = isRoomAllowedForUser('Direct Join with token', username, room);
|
||||||
if (!roomAllowedForUser) {
|
if (!roomAllowedForUser) {
|
||||||
return res.status(401).json({ message: 'Direct Room Join for this User is Unauthorized' });
|
return res.status(401).json({ message: 'Direct Room Join for this User is Unauthorized' });
|
||||||
@@ -1221,9 +1221,11 @@ function startServer() {
|
|||||||
return cb('unauthorized');
|
return cb('unauthorized');
|
||||||
}
|
}
|
||||||
|
|
||||||
const roomAllowedForUser = isRoomAllowedForUser('[Join]', peer_name, room.id);
|
if (!hostCfg.users_from_db) {
|
||||||
if (!roomAllowedForUser) {
|
const roomAllowedForUser = isRoomAllowedForUser('[Join]', peer_name, room.id);
|
||||||
return cb('notAllowed');
|
if (!roomAllowedForUser) {
|
||||||
|
return cb('notAllowed');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1305,7 +1307,7 @@ function startServer() {
|
|||||||
return cb('isLobby');
|
return cb('isLobby');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((hostCfg.protected || hostCfg.user_auth) && isPresenter) {
|
if ((hostCfg.protected || hostCfg.user_auth) && isPresenter && !hostCfg.users_from_db) {
|
||||||
const roomAllowedForUser = isRoomAllowedForUser('[Join]', peer_name, room.id);
|
const roomAllowedForUser = isRoomAllowedForUser('[Join]', peer_name, room.id);
|
||||||
if (!roomAllowedForUser) {
|
if (!roomAllowedForUser) {
|
||||||
return cb('notAllowed');
|
return cb('notAllowed');
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mirotalksfu",
|
"name": "mirotalksfu",
|
||||||
"version": "1.5.19",
|
"version": "1.5.20",
|
||||||
"description": "WebRTC SFU browser-based video calls",
|
"description": "WebRTC SFU browser-based video calls",
|
||||||
"main": "Server.js",
|
"main": "Server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ if (location.href.substr(0, 5) !== 'https') location.href = 'https' + location.h
|
|||||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.5.19
|
* @version 1.5.20
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -4299,7 +4299,7 @@ function showAbout() {
|
|||||||
imageUrl: image.about,
|
imageUrl: image.about,
|
||||||
customClass: { image: 'img-about' },
|
customClass: { image: 'img-about' },
|
||||||
position: 'center',
|
position: 'center',
|
||||||
title: 'WebRTC SFU v1.5.15',
|
title: 'WebRTC SFU v1.5.20',
|
||||||
html: `
|
html: `
|
||||||
<br />
|
<br />
|
||||||
<div id="about">
|
<div id="about">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.5.19
|
* @version 1.5.20
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم