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
–true
if all ofmethods
can be executed,false
otherwise.
Notes
Learn more with the Permission guide.