-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1d9680
commit b198ba8
Showing
5 changed files
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ dev dependencies: { | |
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.5.92 | ||
* @version 1.5.93 | ||
* | ||
*/ | ||
|
||
|
@@ -511,7 +511,12 @@ function startServer() { | |
if (isPeerPresenter && !hostCfg.users_from_db) { | ||
const roomAllowedForUser = await isRoomAllowedForUser('Direct Join with token', username, room); | ||
if (!roomAllowedForUser) { | ||
return res.status(401).json({ message: 'Direct Room Join for this User is Unauthorized' }); | ||
log.warn('Direct Room Join for this User is Unauthorized', { | ||
username: username, | ||
room: room, | ||
}); | ||
return res.redirect('/whoAreYou/' + room); | ||
//return res.status(401).json({ message: 'Direct Room Join for this User is Unauthorized' }); | ||
} | ||
} | ||
} catch (err) { | ||
|
@@ -524,7 +529,9 @@ function startServer() { | |
const allowRoomAccess = isAllowedRoomAccess('/join/params', req, hostCfg, roomList, room); | ||
const roomAllowedForUser = await isRoomAllowedForUser('Direct Join without token', name, room); | ||
if (!allowRoomAccess && !roomAllowedForUser) { | ||
return res.status(401).json({ message: 'Direct Room Join Unauthorized' }); | ||
log.warn('Direct Room Join Unauthorized', room); | ||
return res.redirect('/whoAreYou/' + room); | ||
//return res.status(401).json({ message: 'Direct Room Join Unauthorized' }); | ||
} | ||
} | ||
|
||
|
@@ -578,9 +585,9 @@ function startServer() { | |
} | ||
// 2. Protect room access with configuration check | ||
if (!OIDC.enabled && hostCfg.protected && !hostCfg.users_from_db) { | ||
const roomExists = hostCfg.users.some(user => | ||
user.allowed_rooms && user.allowed_rooms.includes(roomId) | ||
); | ||
const roomExists = hostCfg.users.some( | ||
(user) => user.allowed_rooms && user.allowed_rooms.includes(roomId), | ||
); | ||
log.debug('/join/:roomId exists from config allowed rooms', roomExists); | ||
return roomExists ? res.sendFile(views.room) : res.redirect('/whoAreYou/' + roomId); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.5.92 | ||
* @version 1.5.93 | ||
* | ||
*/ | ||
|
||
|
@@ -4500,7 +4500,7 @@ function showAbout() { | |
imageUrl: image.about, | ||
customClass: { image: 'img-about' }, | ||
position: 'center', | ||
title: 'WebRTC SFU v1.5.92', | ||
title: 'WebRTC SFU v1.5.93', | ||
html: ` | ||
<br /> | ||
<div id="about"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @license For commercial or closed source, contact us at [email protected] or purchase directly via CodeCanyon | ||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970 | ||
* @author Miroslav Pejic - [email protected] | ||
* @version 1.5.92 | ||
* @version 1.5.93 | ||
* | ||
*/ | ||
|
||
|