CurrentUserHasPrivilege Function

Syntax

Boolean CurrentUserHasPrivilege(String privilegeName)

Return Value

Boolean

True if the current user has the privilege or if user privilege checking is disabled. Returns False otherwise.

Purpose

This function returns True if the current user has the privilege you specify.

Parameters

privilegeName as String

A string containing the name of the privilege. Pass "*" to determine if a user is currently logged in.