You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api): correct admin data scoping in generic data handlers
Fixes a bug where administrators were incorrectly scoped to their own
userId when accessing user-owned resources, preventing them from
managing other users' data.
The logic in the generic data handlers (`/data` and `/data/[id]`) has
been updated to only apply the `userId` filter to repository calls if
the model is user-owned AND the authenticated user is not an admin.
This allows administrators to perform global operations as intended.
0 commit comments