mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Fix button error
This commit is contained in:
parent
6835fec217
commit
e7cfde84ae
1 changed files with 2 additions and 2 deletions
|
@ -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 '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue