mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Adds user permissions management, including models, API endpoints, and
tests, alongside existing team permissions.
>
> - **Behavior**:
> - Adds user permissions alongside team permissions, allowing for
user-specific permission management.
> - Introduces `ProjectUserDirectPermission` model in `schema.prisma`
for direct user permissions.
> - Updates `PermissionScope` enum from `GLOBAL` to `USER`.
> - **API**:
> - Adds CRUD endpoints for user permissions in `user-permissions` and
`user-permission-definitions`.
> - Updates existing team permission endpoints to support user
permissions.
> - **Tests**:
> - Adds e2e tests for user permissions in `user-permissions.test.ts`
and `user-permission-definitions.test.ts`.
> - Updates existing tests to include user permissions where applicable.
> - **Misc**:
> - Updates `adminInterface.ts` and `server-app-impl.ts` to handle user
permissions.
> - Modifies `known-errors.tsx` to include `UserPermissionRequired`
error.
> - Adjusts `project-configs` and `projects` to include user default
permissions.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral)<sup>
for
|
||
|---|---|---|
| .. | ||
| arrays.tsx | ||
| base64.tsx | ||
| booleans.tsx | ||
| browser-compat.tsx | ||
| bytes.tsx | ||
| caches.tsx | ||
| compile-time.tsx | ||
| crypto.tsx | ||
| dates.tsx | ||
| dom.tsx | ||
| env.tsx | ||
| errors.tsx | ||
| fs.tsx | ||
| functions.tsx | ||
| geo.tsx | ||
| globals.tsx | ||
| hashes.tsx | ||
| html.tsx | ||
| http.tsx | ||
| ips.tsx | ||
| json.tsx | ||
| jwt.tsx | ||
| locks.tsx | ||
| maps.tsx | ||
| math.tsx | ||
| node-http.tsx | ||
| numbers.tsx | ||
| oauth.tsx | ||
| objects.tsx | ||
| passkey.tsx | ||
| promises.tsx | ||
| proxies.tsx | ||
| react.tsx | ||
| results.tsx | ||
| sentry.tsx | ||
| stores.tsx | ||
| strings.test.ts | ||
| strings.tsx | ||
| types.tsx | ||
| unicode.tsx | ||
| urls.tsx | ||
| uuids.tsx | ||