Skip to content

Remove check for gitlab employee badge feature

What does this MR do?

The EE::User#gitlab_employee? method would return false if the Feature flag gitlab_employee_badge was enabled. Since this feature flag only added a special badge to gitlab employees and didn't affect the actual check, we're removing it.

It was actually harming spam checks which should allow issue creation without checking for spam if the user is a gitlab employee. Since this feature flag is disabled, it always failed that check and thus, would check all employee issues for spam. This is a problem when the creation is automated.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #212213 (closed)

Edited by Ethan Urie

Merge request reports