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
546546
547547 <framework : transition name =" reject" >
548548 <!-- 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 >
550550 <framework : from >reviewed</framework : from >
551551 <framework : to >rejected</framework : to >
552552 </framework : transition >
@@ -581,7 +581,7 @@ transition. The value of this option is any valid expression created with the
581581 ],
582582 'reject' => [
583583 // 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()',
585585 'from' => 'reviewed',
586586 'to' => 'rejected',
587587 ],
You can’t perform that action at this time.
0 commit comments