mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
SECURITY: Avoid mass assignment on user create
This commit is contained in:
@@ -23,4 +23,9 @@ class UsernameCheckerService
|
||||
Rails.configuration.respond_to?(:developer_emails) && Rails.configuration.developer_emails.include?(value)
|
||||
end
|
||||
|
||||
|
||||
def self.is_developer?(email)
|
||||
UsernameCheckerService.new.is_developer?(email)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user