Explorar o código

Se agregó is_granted para ROLE_SUPER_ADMIN en acciones de workflow

Espinoza Guillermo %!s(int64=7) %!d(string=hai) anos
pai
achega
960832fd94
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Resources/views/Workflow/show_transitions.html.twig

+ 1 - 1
Resources/views/Workflow/show_transitions.html.twig

@@ -1,4 +1,4 @@
-{% if is_granted('ROLE_SONATA_WORKFLOW_EDITOR') %}
+{% if is_granted('ROLE_SONATA_WORKFLOW_EDITOR') or is_granted('ROLE_SUPER_ADMIN') %}
 {% if object.getWorkflow() is null %}
     <a  href="#" name="transition" value="" class="btn btn-sm view_link btn-danger" disabled="disabled">{{ "Undefined Workflow"|trans({},'WorkflowLabel') }}</a>
 {% else %}