1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +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() { public function getPluginVersion() {
return "1.0"; return "1.1";
} }
public function getEmptyDataObject() { public function getEmptyDataObject() {
@ -49,7 +49,7 @@ class BulkEmbed extends PluginAbstract {
public function getUploadMenuButton(){ public function getUploadMenuButton(){
global $global; global $global;
$obj = $this->getDataObject(); $obj = $this->getDataObject();
if($obj->onlyAdminCanBulkEmbed && !User::isAdmin()){ if($obj->onlyAdminCanBulkEmbed && !User::isAdmin() || !User::canUpload()){
return ''; return '';
} }