mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
parent
5872e23562
commit
19c5111170
2 changed files with 29 additions and 4 deletions
|
@ -2571,11 +2571,12 @@ if (typeof gtag !== \"function\") {
|
|||
|
||||
public static function canCreateMeet()
|
||||
{
|
||||
global $global, $config;
|
||||
if (self::isLogged() && !empty($_SESSION['user']['canCreateMeet'])) {
|
||||
return true;
|
||||
$p = AVideoPlugin::isEnabledByName('Meet');
|
||||
if(empty($p)){
|
||||
return false;
|
||||
}
|
||||
return self::isAdmin();
|
||||
|
||||
return Meet::canCreateMeet();
|
||||
}
|
||||
|
||||
public static function canComment()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue