| 238 | Permissions might be based on the state of a ticket or milestone like this: |
| 239 | {{{ |
| 240 | {{{ |
| 241 | #!WikiForms |
| 242 | |
| 243 | <f>permission:change:rw</f> |
| 244 | <f>permission:change:-w:ticket_state 42 in closed</f> |
| 245 | |
| 246 | || <f>checkbox:approval:checked=true</f> || (read-only if #42 is in closed state) |
| 247 | || <f>input:comment:value='Please fill in your comment' size=50</f> || (read-only if #42 is in closed state) |
| 248 | |
| 249 | |
| 250 | <f>permission:change:rw</f> |
| 251 | <f>permission:change:-w:milestone_is_complete 'my next milestone'</f> |
| 252 | |
| 253 | <f>checkbox:approval:checked=true</f> (read-only if milestone is completed) |
| 254 | }}} |
| 255 | }}} |
| 256 | |