Skip to content

Commit b07d739

Browse files
afilinajaviereguiluz
authored andcommitted
Fix broken example
`has_role` doesn't exist.
1 parent 5203714 commit b07d739

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)