CurrentUserHasPrivilege Function
- 更新时间2025-07-21
- 阅读时长1分钟
CurrentUserHasPrivilege Function
Syntax
Boolean CurrentUserHasPrivilege(String privilegeName)
Return Value
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.