#Dynamic Permissions

1 messages · Page 1 of 1 (latest)

wary blaze
#

Are dynamically changing component permissions (not on a per instance level) supported? ex. If I wanted to have a basic component can only be dragged into the editor if it doesn’t already exist?

I don’t believe resolvePermissions would work in this case.

median temple
#

Hey @wary blaze!

Let me double-check I understand what you're trying to do, you want to be able to resolve the global/component permissions based on the current application state, is that correct? Not the actual dragged and dropped ones.

If that's the case, I don't think this is possible with the current API, but I might be wrong.
If you can, could you share a bit more detail on how you’d like to do it? That way I can either open a feature request for it or suggest a potential workaround.