mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
parent
b664674d2b
commit
77fda4dc00
@ -14,7 +14,7 @@ class EnableContentSecurityPolicyForNewSites < ActiveRecord::Migration[5.2]
|
|||||||
end
|
end
|
||||||
|
|
||||||
def row_exists?
|
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
|
end
|
||||||
|
|
||||||
def instance_is_new?
|
def instance_is_new?
|
||||||
|
Loading…
Reference in New Issue
Block a user