feat(users): allow profile picture change for external providers (#4275)
This commit is contained in:
1 parent
35a8ac820f
commit
5c86930220
4 files changed
+25
-35
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user