Commit e787afc3 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'remove-user-query-deplications' into 'master'

DRY User scopes for bots/humans

See merge request gitlab-org/gitlab!22976
parents eff1751d 49221845
...@@ -125,12 +125,12 @@ module EE ...@@ -125,12 +125,12 @@ module EE
override :internal override :internal
def internal def internal
super.or(where.not(bot_type: nil)) super.or(bots)
end end
override :non_internal override :non_internal
def non_internal def non_internal
super.where(bot_type: nil) super.humans
end end
def non_ldap def non_ldap
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment