mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-19 07:43:55 +02:00
- Added a new utility function `authedFetchWithError` to handle fetch requests with error checking. - Updated existing API calls in `organizations.ts`, `sites.ts`, and other files to utilize the new error handling function. - Refactored the `getUserOrganizations`, `addSite`, `deleteSite`, and other functions to enhance error management and response handling. - Adjusted the `getUserHasAccessToSite` function to support admin-only checks, improving authorization logic. - Modified the `AddMemberDialog` to set the default role to "admin" for new members, enhancing user management capabilities. |
||
---|---|---|
.. | ||
api | ||
cron | ||
db | ||
lib | ||
tracker | ||
index.ts | ||
types.ts | ||
utils.ts |