API FrameScriptObject IsForbidden

Returns true if insecure interaction with the object is forbidden.
 isForbidden = FrameScriptObject:IsForbidden()
==Returns==
:;isForbidden: - True if this widget object's methods may only be called from secure execution paths, false otherwise.
==Details==
* Calling any method except ParentedObject:IsForbidden(), (), and () on a forbidden widget from a tainted execution path will result in an error.
* SecureActionButtonTemplate's click action, as well as the /click slash command cannot be used to click forbidden buttons.
* Forbidden widgets are created by nesting their declaration inside a <ScopedModifier forbidden="true"> XML tag.
==Example==
/dump StoreFrame:IsForbidden() -- true
/dump StoreFrame:GetDebugName() -- Error: Attempt to access forbidden object from code tainted by an AddOn
==Patch changes==
==See also==
* Object security