Remove false positive cop detection (#27457)
This commit is contained in:
parent
49e2772064
commit
bbad5b6456
5 changed files with 5 additions and 14 deletions
|
@ -488,7 +488,7 @@ class User < ApplicationRecord
|
|||
end
|
||||
|
||||
def validate_email_dns?
|
||||
email_changed? && !external? && !Rails.env.local? # rubocop:disable Rails/UnknownEnv
|
||||
email_changed? && !external? && !Rails.env.local?
|
||||
end
|
||||
|
||||
def validate_role_elevation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue