File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
components/console/helpers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ the following to your command::
4040 $question = new ConfirmationQuestion('Continue with this action?', false);
4141
4242 if (!$helper->ask($input, $output, $question)) {
43- return;
43+ return 0 ;
4444 }
4545 }
4646 }
Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ transition. The value of this option is any valid expression created with the
541541
542542 <framework : transition name =" reject" >
543543 <!-- or any valid expression language with "subject" referring to the post -->
544- <framework : guard >has_role ("ROLE_ADMIN") and subject.isStatusReviewed()</framework : guard >
544+ <framework : guard >is_granted ("ROLE_ADMIN") and subject.isStatusReviewed()</framework : guard >
545545 <framework : from >reviewed</framework : from >
546546 <framework : to >rejected</framework : to >
547547 </framework : transition >
@@ -576,7 +576,7 @@ transition. The value of this option is any valid expression created with the
576576 ],
577577 'reject' => [
578578 // or any valid expression language with "subject" referring to the post
579- 'guard' => 'has_role ("ROLE_ADMIN") and subject.isStatusReviewed()',
579+ 'guard' => 'is_granted ("ROLE_ADMIN") and subject.isStatusReviewed()',
580580 'from' => 'reviewed',
581581 'to' => 'rejected',
582582 ],
You can’t perform that action at this time.
0 commit comments