Render it's body depending whether the user is in a specific role or not.
| Name | Type | Flags | Default | Default Prefix | Description |
|---|---|---|---|---|---|
| else | org.apache.tapestry.Block | prop | An alternate org.apache.tapestry.Block to render if the test parameter is false. The default, null, means render nothing in that situation. | ||
| ifAllGranted | String | literal | A comma-separated list of roles is supplied to one or more of the following parameters. If none are supplied, the default behavior is to permit access. Behavior should be self-explanatory. | ||
| ifAnyGranted | String | literal | |||
| ifNotGranted | String | literal | |||
| negate | boolean | prop | Optional parameter to invert the test. If true, then the body is rendered when the test parameter is false (not true). | ||
| role | String | literal | If the logged in user matches this role, then the body of the IfRole component is rendered. If false, the body is omitted. This is retained for backward compatibility, and corresponds to a single entry in ifAnyGranted |