skip already banned sites

This commit is contained in:
Kyle Drake 2014-08-15 18:17:56 -07:00
parent c0bea57468
commit d261e5bf95

View file

@ -243,6 +243,8 @@ class Site < Sequel::Model
raise 'username is missing' raise 'username is missing'
end end
return if is_banned == true
DB.transaction { DB.transaction {
self.is_banned = true self.is_banned = true
self.updated_at = Time.now self.updated_at = Time.now