👀 See Sanity in action: Watch product demo now →

When to add "history" as a permission in Sanity access controls

3 replies
Last updated: Feb 7, 2021
Hi there, I have a small bug I can’t resolve. I have Access Control grants implemented and I give permissions based on doc types.
"filter": "_type == 'post'",
      "permissions": ["read", "update", "create"]
But except ‘administrator’, my permission managed users can’t see documents History. It might be something with my code, but I thought to check if there’s another workaround or special permission I need to enable.

includeMendozaPatches requires history access on document
Feb 7, 2021, 12:30 PM
Add
history
to the permissions:
    "permissions": ["read", "update", "create", "history"]

Feb 7, 2021, 12:31 PM
Add
history
to the permissions:
    "permissions": ["read", "update", "create", "history"]

Feb 7, 2021, 12:31 PM
thank you, this worked.
Feb 7, 2021, 2:16 PM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.