mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
parent
b664674d2b
commit
77fda4dc00
@ -14,7 +14,7 @@ class EnableContentSecurityPolicyForNewSites < ActiveRecord::Migration[5.2]
|
||||
end
|
||||
|
||||
def row_exists?
|
||||
return DB.query("SELECT 1 AS one FROM site_settings where name='content_security_policy'").present?
|
||||
DB.query("SELECT 1 AS one FROM site_settings where name='content_security_policy'").present?
|
||||
end
|
||||
|
||||
def instance_is_new?
|
||||
|
Loading…
Reference in New Issue
Block a user