You never know.

This commit is contained in:
Kyle Drake 2015-07-29 22:29:36 -07:00
parent 7e2ee59186
commit a1023948f8
3 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,12 @@
Sequel.migration do
up {
DB.create_table! :banned_referrers do
primary_key :id
String :name
end
}
down {
DB.drop_table :banned_referrers
}
end

View file

@ -0,0 +1,9 @@
Sequel.migration do
up {
DB.add_column :sites, :commenting_banned, :boolean, default: false
}
down {
DB.drop_column :sites, :commenting_banned
}
end

View file

@ -496,6 +496,7 @@ class Site < Sequel::Model
=end
def commenting_allowed?
return false if owner.commenting_banned == true
return true if owner.commenting_allowed
if owner.supporter?