mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 17:26:07 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user