v0.13.8

C_RestrictedActions.CheckAllowProtectedFunctions

functionimplementedavailable in: camelot

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

signaturewowlua
function C_RestrictedActions.CheckAllowProtectedFunctions(    object: FrameScriptObject,    silent: boolean): boolean

Parameters

nametypedescription
objectFrameScriptObject
silentbooleanIf true, don't signal blocked action errors if protected function calls are disallowed. Default: false.

Returns

protectedFunctionsAllowed · boolean

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

  • It can't be hooked with hooksecurefunc.

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (RestrictedActions system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.