Skip to content

Commit

Permalink
Fixed permissions issue on `/notification/trigger/add/<trigger_id>/gu…
Browse files Browse the repository at this point in the history
…ild/<guild_id>`

Signed-off-by: tiksan <[email protected]>
  • Loading branch information
dssecret committed Jan 31, 2025
1 parent fdc9c01 commit 4e17a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/notification/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def trigger_setup_server(trigger_uuid: str, guild_id: int):
)

try:
guild: Server = Server.select(Server.name, Server.sid).where(Server.sid == int(guild_id)).get()
guild: Server = Server.select(Server.name, Server.sid, Server.Admins).where(Server.sid == int(guild_id)).get()
except (ValueError, TypeError, DoesNotExist):
return (
render_template(
Expand Down

0 comments on commit 4e17a84

Please sign in to comment.