mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +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() {
|
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 '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue