mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
a9ad08cf89
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. |
||
---|---|---|
.. | ||
api | ||
unsplash | ||
utils |