aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-03-14 08:06:04 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-03-14 08:06:04 +0400
commit7c3afa8935eb2ace980b170db7b3692e92321fdd (patch)
treee10e00d9c16ea386366069b7ce6aeeac5e9d74ef /backend
parentEnsure Form Existence Is Always Checked (diff)
Add Default Attribute For Form Access Helper
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend')
-rw-r--r--backend/discord.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/discord.py b/backend/discord.py
index 70532bf..5a734db 100644
--- a/backend/discord.py
+++ b/backend/discord.py
@@ -175,7 +175,7 @@ async def _verify_access_helper(
form = models.Form(**form)
- for role_id in getattr(form, attribute) or []:
+ for role_id in getattr(form, attribute, []):
role = await request.state.db.roles.find_one({"id": role_id})
if not role:
continue