Skip to content

Commit

Permalink
Fix button error
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielnetoDotCom committed Nov 28, 2020
1 parent 6835fec commit e7cfde8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/BulkEmbed/BulkEmbed.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function getUUID() {
}

public function getPluginVersion() {
return "1.0";
return "1.1";
}

public function getEmptyDataObject() {
Expand All @@ -49,7 +49,7 @@ public function getPluginMenu() {
public function getUploadMenuButton(){
global $global;
$obj = $this->getDataObject();
if($obj->onlyAdminCanBulkEmbed && !User::isAdmin()){
if($obj->onlyAdminCanBulkEmbed && !User::isAdmin() || !User::canUpload()){
return '';
}

Expand Down

0 comments on commit e7cfde8

Please sign in to comment.