mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 01:42:46 +08:00
Fix Fixnum
is deprecated in Ruby 2.4.
This commit is contained in:
parent
aef89c4850
commit
85ba14fedd
|
@ -69,7 +69,7 @@ module PrettyText
|
|||
end
|
||||
|
||||
def get_current_user(user_id)
|
||||
return unless Fixnum === user_id
|
||||
return unless user_id.is_a?(Integer)
|
||||
{ staff: User.where(id: user_id).where("moderator OR admin").exists? }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user