Ghost/apps
Ronald Langeveld a9ad08cf89
Fixed API Query permissions in User Settings (#18680)
refs
https://www.notion.so/ghost/Cannot-fetch-invites-error-shown-for-authors-edc00af822d844e7add114fd834fc8fc

- the problem is that certain users don't have permissions to make
certain API calls.
- This adds a new hook that validates the current user against
permissions before a query can be made.

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 9d9cc07</samp>

Added a `usePermission` hook and a `permissions` option for custom API
queries to implement role-based permissions in the admin settings app.
2023-10-18 17:04:59 +07:00
..
admin-x-settings Fixed API Query permissions in User Settings (#18680) 2023-10-18 17:04:59 +07:00
announcement-bar
comments-ui Update tiptap monorepo to v2.1.12 2023-10-13 06:08:29 +00:00
portal Released Portal v2.36.2 (#18654) 2023-10-16 17:27:37 +00:00
signup-form Update react monorepo 2023-10-13 09:07:09 +02:00
sodo-search