Skip to content

Commit

Permalink
Closes #7 Revamped Admin priviledges
Browse files Browse the repository at this point in the history
Signed-off-by: Akash <[email protected]>
  • Loading branch information
SkySingh04 committed May 4, 2024
1 parent 9c3d44a commit 03af599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const AdminPage = () => {
fetchQuizData();
onAuthStateChanged(auth, (user) => {
if (user) {
if (user.providerData[0].email === '[email protected]' || user.providerData[0].email === '[email protected]') {
console.log(user.uid)
//these are the admin user uid's. Yes i wrote it in the code. Go cry about it.
if (user.uid === 'faNLMo6zT2XhXH0dTBaJQunXe9B3' || user.uid === 'BiiqrNezHSM8NTF1P5yNkkX4x8F2') {
setUser(user);
} else {
toast.error("Unauthorized :(");
Expand Down

0 comments on commit 03af599

Please sign in to comment.