Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
fix bug where event creators could not delete their own events
Browse files Browse the repository at this point in the history
  • Loading branch information
jgayfer committed Oct 1, 2017
1 parent cae10f7 commit 3c1ccf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async def delete_event(self, guild, title, member, channel):
result = self.bot.db.get_event_creator(guild.id, title)

if result:
creator_id = result.get('creator_id')
creator_id = result.get('user_id')

if member.permissions_in(channel).manage_guild or (member.id == creator_id) or (event_delete_role and member.top_role >= event_delete_role):
deleted = self.bot.db.delete_event(guild.id, title)
Expand Down

0 comments on commit 3c1ccf1

Please sign in to comment.