Skip to content

Commit

Permalink
Prevent read of supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
karntrehan committed Sep 26, 2024
1 parent 6227549 commit a33da3f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,19 @@ async def on_submit(self, interaction: discord.Interaction):
verifiedContributorRoleID = 1247854311191351307
print("User:", type(user))
if verifiedContributorRoleID in [role.id for role in user.roles]:
print("User already verified. Returning")
return
else:
async def hasIntroduced():
print("Checking hasIntroduced...")
try:
print("Trying has authenticated")
authentication = supaClient.read(
"contributors_registration", "discord_id", user.id
)
#authentication = supaClient.read(
# "contributors_registration", "discord_id", user.id
#)
except Exception as e:
print("Failed hasIntroduced: "+e)
authentication = False
print("Authentication: "+authentication)
while not authentication:
print("Not authenticated")
Expand Down

0 comments on commit a33da3f

Please sign in to comment.