File tree 2 files changed +3
-3
lines changed
components/console/helpers 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::
40
40
$question = new ConfirmationQuestion('Continue with this action?', false);
41
41
42
42
if (!$helper->ask($input, $output, $question)) {
43
- return;
43
+ return 0 ;
44
44
}
45
45
}
46
46
}
Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ transition. The value of this option is any valid expression created with the
552
552
553
553
<framework : transition name =" reject" >
554
554
<!-- or any valid expression language with "subject" referring to the post -->
555
- <framework : guard >has_role ("ROLE_ADMIN") and subject.isStatusReviewed()</framework : guard >
555
+ <framework : guard >is_granted ("ROLE_ADMIN") and subject.isStatusReviewed()</framework : guard >
556
556
<framework : from >reviewed</framework : from >
557
557
<framework : to >rejected</framework : to >
558
558
</framework : transition >
@@ -587,7 +587,7 @@ transition. The value of this option is any valid expression created with the
587
587
],
588
588
'reject' => [
589
589
// or any valid expression language with "subject" referring to the post
590
- 'guard' => 'has_role ("ROLE_ADMIN") and subject.isStatusReviewed()',
590
+ 'guard' => 'is_granted ("ROLE_ADMIN") and subject.isStatusReviewed()',
591
591
'from' => 'reviewed',
592
592
'to' => 'rejected',
593
593
],
You can’t perform that action at this time.
0 commit comments