Failing test for unmuting microphone
This commit is contained in:
parent
844d161c40
commit
8669b08161
3 changed files with 45 additions and 13 deletions
|
@ -167,6 +167,10 @@ impl TestServer {
|
|||
let identity = claims.sub.unwrap().to_string();
|
||||
let room_name = claims.video.room.unwrap();
|
||||
|
||||
if claims.video.can_publish == Some(false) {
|
||||
return Err(anyhow!("user is not allowed to publish"));
|
||||
}
|
||||
|
||||
let mut server_rooms = self.rooms.lock();
|
||||
let room = server_rooms
|
||||
.get_mut(&*room_name)
|
||||
|
@ -205,6 +209,10 @@ impl TestServer {
|
|||
let identity = claims.sub.unwrap().to_string();
|
||||
let room_name = claims.video.room.unwrap();
|
||||
|
||||
if claims.video.can_publish == Some(false) {
|
||||
return Err(anyhow!("user is not allowed to publish"));
|
||||
}
|
||||
|
||||
let mut server_rooms = self.rooms.lock();
|
||||
let room = server_rooms
|
||||
.get_mut(&*room_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue