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.