Determines whether a Permission is allowed or not.

<para>If the Current User is an Administrator then this method always returns True.</para> <para>If a Script is currently running with special Administrative permission then this method always returns True.</para> <para>Roles that are not Active will be ignored.</para>

Syntax

ISCurrentUserPermissions.Allow(permissionKey, [denyIfPermissionKeyMissing])

Parameters

NameTypeOptionalByRefDescription
permissionKey String The Key of the Permission to check.
denyIfPermissionKeyMissing Boolean Optional By default, if the Permission Key is missing, e.g., a User Defined Permission does not exist, this method will return True. Use this option to return False if the Permission Key is missing. If omitted, a value of False is assumed.

Return Value

Boolean

A Boolean value indicating whether the Permission is allowed or not.

Member of:
ISCurrentUserPermissions
Namespace:
Intersoft.ISSupport6
Assembly:
ISSupport6, Version=6.0.3
Target Framework:
.NET 9.0