aboutsummaryrefslogtreecommitdiffstats
path: root/backend/discord.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/discord.py')
-rw-r--r--backend/discord.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/discord.py b/backend/discord.py
index 5a734db..be12109 100644
--- a/backend/discord.py
+++ b/backend/discord.py
@@ -164,12 +164,12 @@ async def _verify_access_helper(
form_id: str, request: starlette.requests.Request, attribute: str
) -> None:
"""A low level helper to validate access to a form resource based on the user's scopes."""
- form = await request.state.db.forms.find_one({"id": form_id})
+ form = await request.state.db.forms.find_one({"_id": form_id})
if not form:
raise FormNotFoundError(status_code=404)
- # Short circuit all resources for admins
+ # Short circuit all resources for forms admins
if "admin" in request.auth.scopes:
return