>wowhelm_
~/forever/addon-api/function/C_RestrictedActions.CheckAllowProtectedFunctions

C_RestrictedActions.CheckAllowProtectedFunctions

documented function · RestrictedActions
C_RestrictedActions.CheckAllowProtectedFunctions(object, silent) : protectedFunctionsAllowed

Returns true if the calling context has permissions to call protected functions on the supplied object.

──ARGUMENTS
object
FrameScriptObject
silent
bool, default false (If true, don't signal blocked action errors if protected function calls are disallowed.)
──RETURNS
protectedFunctionsAllowed
bool
──DETAILS
Secure Hooks Allowed
false
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.