Skip to content

Commit

Permalink
adjust gardenzero acl for event[2]
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth authored Jan 14, 2024
1 parent b73078d commit ddc6ec7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/gardenGate/checkAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export const checkAccess = async (user: AuthenticatedUser | null) => {
return { granted: false, reason: 'You are not logged in.' }
}

if (Date.now() < Date.parse('2024-01-14T23:59:59.999Z')) {
return { granted: true }
}

const partialUserDoc = await collections.users.findOne(
{ _id: new ObjectId(user.sub) },
{ projection: { roles: 1 } }
Expand Down

0 comments on commit ddc6ec7

Please sign in to comment.