Skip to content

Commit

Permalink
Merge pull request #12 from phansys/child_admin
Browse files Browse the repository at this point in the history
Avoid to show the transition if the current admin is not the one which transition applies to
  • Loading branch information
yann-eugone authored Sep 26, 2019
2 parents da96df7 + 1419e76 commit b610c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Admin/Extension/WorkflowExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function configureSideMenu(
$action,
AdminInterface $childAdmin = null
) {
if (!in_array($action, $this->options['render_actions'], true)) {
if (null !== $childAdmin || !in_array($action, $this->options['render_actions'], true)) {
return;
}

Expand Down

0 comments on commit b610c43

Please sign in to comment.