Skip to content

Commit

Permalink
Debug log for pagePermission
Browse files Browse the repository at this point in the history
  • Loading branch information
rlho committed Nov 7, 2024
1 parent eae14ae commit 7f667cb
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { ApproverLevel, TableNames } from "@/components/src/policy";
import React, { createContext, useEffect, useMemo, useState } from "react";
import {
AdminUser,
Approver,
Expand All @@ -12,12 +14,10 @@ import {
SafetyTraining,
Settings,
} from "../../../types";
import { ApproverLevel, TableNames } from "@/components/src/policy";
import React, { createContext, useEffect, useMemo, useState } from "react";

import { clientFetchAllDataFromCollection } from "@/lib/firebase/firebase";
import { fetchAllFutureBooking } from "@/components/src/server/db";
import { useAuth } from "@/components/src/client/routes/components/AuthProvider";
import { fetchAllFutureBooking } from "@/components/src/server/db";
import { clientFetchAllDataFromCollection } from "@/lib/firebase/firebase";

export interface DatabaseContextType {
adminUsers: AdminUser[];
Expand Down Expand Up @@ -103,6 +103,7 @@ export const DatabaseProvider = ({
return PagePermission.PA;
else return PagePermission.BOOKING;
}, [userEmail, adminUsers, paUsers]);
console.log("pagePermission", pagePermission);

useEffect(() => {
if (!bookingsLoading) {
Expand Down

0 comments on commit 7f667cb

Please sign in to comment.