Returns an sql snippet that can be added to the where clause of a query using the given alias for a contents view to exclude items that the current user does not have browse access to.

Syntax

Smartsite SXML CopyCode image Copy Code
string security.contentaccess.getbrowsablewhere(string alias, integer minimumLevel)
string security.contentaccess.getbrowsablewhere(string alias, integer minimumLevel, boolean useCurrentRole)
string security.contentaccess.getbrowsablewhere(string loginName, string channelCode, integer minimumLevel)
string security.contentaccess.getbrowsablewhere(string loginName, string channelCode, integer minimumLevel, boolean useCurrentRole)
string security.contentaccess.getbrowsablewhere(integer minimumLevel)
string security.contentaccess.getbrowsablewhere(integer minimumLevel, boolean useCurrentRole)

Parameters

Name Data Type Description
alias String The alias used in the query to represent the contents view.
minimumLevel Integer The minimum browse level.
useCurrentRole Boolean If set to true take the user's current role into account.
loginName String The login name of the user.
channelCode String The channel code.

Return Value

Data Type Description
String An sql clause

Expand image Remarks

Expand image Example

SXML