|
|
Tests if the current user has at least the given level of content access for the given item.
Syntax
| Smartsite SXML |
|
|---|---|
boolean security.contentaccess.test(locator item, string accessTypeLevelName) boolean security.contentaccess.test(locator item, string accessTypeLevelName, boolean useCurrentRole) boolean security.contentaccess.test(string accessTypeLevelName) boolean security.contentaccess.test(string accessTypeLevelName, boolean useCurrentRole) |
|
Parameters
| Name | Data Type | Description |
|---|---|---|
| item | Locator | The item. |
| accessTypeLevelName | String | Name of the access type level. |
| useCurrentRole | Boolean | If set to true take the user's current role into account. |
Return Value
| Data Type | Description |
|---|---|
| Boolean |