Checking user permission role by code in Sanity.io

3 replies
Last updated: Aug 30, 2020
Hello, is it possible to check the user permission role by code?
Aug 29, 2020, 5:47 PM
Yes, here's one approach for when you're using it with Structure builder at least: https://github.com/sanity-io/sanity-recipes/blob/master/snippets/deskStructureWithRoles.js
Aug 30, 2020, 11:16 AM
Yes, here's one approach for when you're using it with Structure builder at least: https://github.com/sanity-io/sanity-recipes/blob/master/snippets/deskStructureWithRoles.js
Aug 30, 2020, 11:16 AM
I tested and it works. That is what i was looking for!
Aug 30, 2020, 12:27 PM

Sanity– build remarkable experiences at scale

The Sanity Composable Content Cloud is the headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?

Categorized in