Search
Search
isAllowedTo
isAllowedTo
isAllowedTo
Find out if user's permissions allow them to execute methods.
const isAllowed = framer.isAllowedTo("addText", "addImage")
Signature
isAllowedTo: ( ...methods: [ProtectedMethod, ...ProtectedMethod[]] ) => boolean
Parameters
methods– The methods to check, at least one.
Returns
boolean–trueif all ofmethodscan be executed,falseotherwise.
Notes
Learn more with the Permission guide.