Skip to content

Commit

Permalink
chore(prettier): fix unformatted files 🤖 ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Apr 19, 2023
1 parent b55bca8 commit 0358927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@sanity/vision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ export default defineConfig({
visionTool(),
],
tools: (prev, {currentUser}) => {
const isAdmin = currentUser?.roles.some(role => role.name === 'administrator');
const isAdmin = currentUser?.roles.some((role) => role.name === 'administrator')

// If the user has the administrator role, return all tools.
// If the user does not have the administrator role, filter out the vision tool.
return isAdmin ? prev : prev.filter(tool => tool.name !== 'vision');
return isAdmin ? prev : prev.filter((tool) => tool.name !== 'vision')
},
})
```
Expand Down

0 comments on commit 0358927

Please sign in to comment.