Browse Source

Se agrega chequeo de rol para batch actions

Espinoza Guillermo 7 years ago
parent
commit
8120a10e17
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Admin/WorkflowBaseAdmin.php

+ 1 - 1
Admin/WorkflowBaseAdmin.php

@@ -13,7 +13,7 @@ class WorkflowBaseAdmin extends BaseAdmin
     public function getBatchActions()
     {
         $actions = parent::getBatchActions();
-        if (!($this->checkRole('ROLE_SONATA_WORKFLOW_EDITOR') || $this->checkRole('ROLE_SUPER_ADMIN'))) {
+        if (!($this->checkRole('ROLE_SONATA_WORKFLOW_ADMIN') || $this->checkRole('ROLE_SONATA_WORKFLOW_EDITOR') || $this->checkRole('ROLE_SUPER_ADMIN'))) {
             return $actions;
         }
         asort($actions);