Gets the content access level the user has in a specific CMS item.

Syntax

Smartsite SXML CopyCode image Copy Code
integer security.contentaccess.getaccesslevel(locator item, string accessTypeName)
integer security.contentaccess.getaccesslevel(locator item, string accessTypeName, boolean useCurrentRole)
integer security.contentaccess.getaccesslevel(string accessTypeName)
integer security.contentaccess.getaccesslevel(string accessTypeName, boolean useCurrentRole)

Parameters

Name Data Type Description
item Locator The item.
accessTypeName String Access type by friendly name.
useCurrentRole Boolean If set to true take the user's current role into account.

Return Value

Data Type Description
Integer Gets the content access level.

Expand image Example

SXML