1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Fix button error

This commit is contained in:
DanielnetoDotCom 2020-11-28 11:52:54 -03:00
parent 6835fec217
commit e7cfde84ae

View file

@ -28,7 +28,7 @@ class BulkEmbed extends PluginAbstract {
}
public function getPluginVersion() {
return "1.0";
return "1.1";
}
public function getEmptyDataObject() {
@ -49,7 +49,7 @@ class BulkEmbed extends PluginAbstract {
public function getUploadMenuButton(){
global $global;
$obj = $this->getDataObject();
if($obj->onlyAdminCanBulkEmbed && !User::isAdmin()){
if($obj->onlyAdminCanBulkEmbed && !User::isAdmin() || !User::canUpload()){
return '';
}