isAllowedTo

Beta
Beta

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

  • booleantrue if all of methods can be executed, false otherwise.

Notes

Learn more with the Permission guide.