Fixes disable branding for teams and users (#5913)

* Adding new nextauth object

* Use correct brand hidden values

* Move check to getprops instead of a function

* Update apps/web/components/booking/pages/AvailabilityPage.tsx

* Update apps/web/components/booking/pages/AvailabilityPage.tsx

* Update apps/web/pages/[user]/[type].tsx

Co-authored-by: Leo Giovanetti <[email protected]>

* Update apps/web/pages/api/auth/[...nextauth].tsx

Co-authored-by: Leo Giovanetti <[email protected]>

* Update apps/web/pages/api/auth/[...nextauth].tsx

Co-authored-by: Leo Giovanetti <[email protected]>

Co-authored-by: Leo Giovanetti <[email protected]>
This commit is contained in:
sean-brydonandLeo Giovanetti authored and GitHub committed 2022-12-07 15:04:04 +00:00
1 parent c3122c82e4
commit f4ed345a87
9 files changed
+57 -10

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ declare module "next-auth" {
emailVerified?: PrismaUser["emailVerified"];
email_verified?: boolean;
impersonatedByUID?: number;
belongsToActiveTeam?: boolean;
username?: PrismaUser["username"];
role?: PrismaUser["role"];
}