Add `feedback` to forbidden screen names

This commit is contained in:
Andreas Nedbal 2022-01-22 21:29:30 +01:00 committed by Andreas Nedbal
parent 322048a48a
commit 8fba959f5e
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ class ScreenNameValidator < ActiveModel::EachValidator
FORBIDDEN_SCREEN_NAMES = %w(justask_admin retrospring_admin admin justask retrospring about public
notifications inbox sign_in sign_up sidekiq moderation moderator mod administrator
siteadmin site_admin help retro_spring retroospring retrosprlng niisding nllsding
pixeidesu plxeldesu plxeidesu terms privacy linkfilter)
pixeidesu plxeldesu plxeidesu terms privacy linkfilter feedback)
FORBIDDEN_SCREEN_NAME_REGEXPS = [/wreciap\z/i]
def validate_each(record, attribute, value)