Skip to content

Commit

Permalink
fix(notes): patch permission check hole in .delnote
Browse files Browse the repository at this point in the history
  • Loading branch information
anna328p committed Oct 3, 2022
1 parent 7b217bf commit 46be006
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ class << self
end
end

QBot.version = '7.16.0'
QBot.version = '7.16.1'
2 changes: 1 addition & 1 deletion modules/notes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ module Notes
max_args: 1,
arg_types: [Integer]
} do |event, id|
note = Note.find(id)
note = Note.find_by(id:, server_id: event.server.id)

unless note
embed t('notes.del.not-found', id)
Expand Down

0 comments on commit 46be006

Please sign in to comment.