Fix email replies, update dependencies
This commit is contained in:
parent
8d86db882d
commit
7688730e4f
21 changed files with 539 additions and 567 deletions
|
|
@ -93,7 +93,6 @@ const handler = NextAuth({
|
|||
|
||||
callbacks: {
|
||||
signIn: async ({ user, account, profile }) => {
|
||||
console.log("SIGN IN");
|
||||
const roles = await getUserRoles(user.email) ?? [];
|
||||
return roles.includes("admin") || roles.includes("agent") || process.env.SETUP_MODE === "true";
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue