Method: Pageflow::ManagedUserQuery::Scope#resolve

Defined in:
app/models/pageflow/managed_user_query.rb

#resolveObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
15
16
17
18
19
# File 'app/models/pageflow/managed_user_query.rb', line 10

def resolve
  if current_user.admin?
    scope.all
  else
    scope
      .distinct
      .joins()
      .joins()
  end
end