feat(users): allow profile picture change for external providers (#4275)

This commit is contained in:
Meier Lukas
2025-10-13 23:52:17 +02:00
committed by GitHub
parent 35a8ac820f
commit 5c86930220
4 changed files with 25 additions and 35 deletions

View File

@@ -146,13 +146,6 @@ export const userRouter = createTRPCRouter({
});
}
if (user.provider !== "credentials") {
throw new TRPCError({
code: "FORBIDDEN",
message: "Profile image can not be changed for users with external providers",
});
}
await ctx.db
.update(users)
.set({