Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.
SalBoolean IsSystemPrivilegeAvailable( SalString sPresObject)
The IsSystemPrivilegeAvailable method tells if a system privilege is available (granted) to the user. System privileges are static and can be found as Const.SYSTEM_PRIVILEGE_* constants.
Name | Description |
---|---|
String: sSystemPrivilege | Name of the System Privilege. Can be any of the Const.SYSTEM_PRIVILEGE_* constants. |
The return value is TRUE if the system privilege is available, FALSE otherwise.
Set bUserHasAdminSysPriv = Security.IsSystemPrivilegeAvailable( SYSTEM_PRIVILEGE_Administrator )bUserHasAdminSysPriv = Var.Security.IsSystemPrivilegeAvailable(Const.SYSTEM_PRIVILEGE_Administrator);