config: remove customize_new_user config option.
This commit is contained in:
@@ -80,7 +80,6 @@ class User < ApplicationRecord
|
||||
validates_presence_of :comment_threshold
|
||||
before_validation :normalize_blacklisted_tags
|
||||
before_create :promote_to_admin_if_first_user
|
||||
before_create :customize_new_user
|
||||
has_many :artists, foreign_key: :creator_id
|
||||
has_many :artist_versions, foreign_key: :updater_id
|
||||
has_many :artist_commentary_versions, foreign_key: :updater_id
|
||||
@@ -256,10 +255,6 @@ class User < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
def customize_new_user
|
||||
Danbooru.config.customize_new_user(self)
|
||||
end
|
||||
|
||||
def level_string_was
|
||||
level_string(level_was)
|
||||
end
|
||||
|
||||
@@ -56,20 +56,6 @@ module Danbooru
|
||||
"#{source_code_url}/issues"
|
||||
end
|
||||
|
||||
# Set the default level, permissions, and other settings for new users here.
|
||||
def customize_new_user(user)
|
||||
# user.level = User::Levels::MEMBER
|
||||
# user.can_approve_posts = false
|
||||
# user.can_upload_free = false
|
||||
#
|
||||
# user.comment_threshold = -1
|
||||
# user.blacklisted_tags = ["spoilers", "guro", "scat", "furry -rating:s"].join("\n")
|
||||
# user.default_image_size = "large"
|
||||
# user.per_page = 20
|
||||
# user.disable_tagged_filenames = false
|
||||
true
|
||||
end
|
||||
|
||||
# An array of regexes containing disallowed usernames.
|
||||
def user_name_blacklist
|
||||
[]
|
||||
|
||||
Reference in New Issue
Block a user