mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
Show password when you create a meet
This commit is contained in:
parent
8a125e20a2
commit
e74773c5bc
1 changed files with 2 additions and 1 deletions
|
@ -1421,10 +1421,11 @@ class API extends PluginAbstract {
|
|||
|
||||
$meets = Meet_schedule::getAllFromUsersId(User::getId(), $time, true, false);
|
||||
|
||||
|
||||
$dataObj = $this->getDataObject();
|
||||
foreach ($meets as $key => $value) {
|
||||
$RoomPassword = '';
|
||||
if ($dataObj->APISecret === @$_GET['APISecret']) {
|
||||
if ($dataObj->APISecret === @$_GET['APISecret'] || Meet::isModerator($value['id'])) {
|
||||
$RoomPassword = $value['password'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue