File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,7 @@ transition. The value of this option is any valid expression created with the
546
546
547
547
<framework : transition name =" reject" >
548
548
<!-- or any valid expression language with "subject" referring to the post -->
549
- <framework : guard >has_role ("ROLE_ADMIN") and subject.isStatusReviewed()</framework : guard >
549
+ <framework : guard >is_granted ("ROLE_ADMIN") and subject.isStatusReviewed()</framework : guard >
550
550
<framework : from >reviewed</framework : from >
551
551
<framework : to >rejected</framework : to >
552
552
</framework : transition >
@@ -581,7 +581,7 @@ transition. The value of this option is any valid expression created with the
581
581
],
582
582
'reject' => [
583
583
// or any valid expression language with "subject" referring to the post
584
- 'guard' => 'has_role ("ROLE_ADMIN") and subject.isStatusReviewed()',
584
+ 'guard' => 'is_granted ("ROLE_ADMIN") and subject.isStatusReviewed()',
585
585
'from' => 'reviewed',
586
586
'to' => 'rejected',
587
587
],
You can’t perform that action at this time.
0 commit comments