1
0
Fork 0
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:
DanieL 2022-04-04 10:33:15 -03:00
parent 8a125e20a2
commit e74773c5bc

View file

@ -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'];
}