Skip to content

Commit 42dc32c

Browse files
committed
minor #13228 Fix broken example (afilina)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead (closes #13228). Discussion ---------- Fix broken example `has_role` doesn't exist. Commits ------- b07d739 Fix broken example
2 parents 5203714 + b07d739 commit 42dc32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ transition. The value of this option is any valid expression created with the
504504
to: published
505505
reject:
506506
# or any valid expression language with "subject" referring to the supported object
507-
guard: "has_role('ROLE_ADMIN') and subject.isRejectable()"
507+
guard: "is_granted('ROLE_ADMIN') and subject.isRejectable()"
508508
from: reviewed
509509
to: rejected
510510

0 commit comments

Comments
 (0)