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 @@ -541,7 +541,7 @@ transition. The value of this option is any valid expression created with the
541
541
542
542
<framework : transition name =" reject" >
543
543
<!-- 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 >
545
545
<framework : from >reviewed</framework : from >
546
546
<framework : to >rejected</framework : to >
547
547
</framework : transition >
@@ -576,7 +576,7 @@ transition. The value of this option is any valid expression created with the
576
576
],
577
577
'reject' => [
578
578
// 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()',
580
580
'from' => 'reviewed',
581
581
'to' => 'rejected',
582
582
],
You can’t perform that action at this time.
0 commit comments