FEATURE: new bootstrap mode settings for brand new Discourse community (#4193)

* FEATURE: new bootstrap mode settings for brand new Discourse community

* new SiteSetting.set_and_log method
This commit is contained in:
Arpit Jalan
2016-04-26 13:08:19 -04:00
committed by Robin Ward
parent 6c5548c2e4
commit 74b3807f60
15 changed files with 157 additions and 7 deletions
+4
View File
@@ -845,6 +845,10 @@ class User < ActiveRecord::Base
custom_fields["master_id"].to_i > 0
end
def is_singular_admin?
User.where(admin: true).where.not(id: id).where.not(id: Discourse::SYSTEM_USER_ID).blank?
end
protected
def badge_grant