Some cosmetics

This commit is contained in:
Alexander Meindl 2020-08-03 17:14:03 +02:00
parent 268dd31df9
commit 65a6b4b9e8

View File

@ -28,8 +28,8 @@ module Additionals
.distinct
if project.nil?
ids = member_scope.pluck(:user_id) | admin_ids
where(id: ids)
user_ids = member_scope.pluck(:user_id) | admin_ids
where(id: user_ids)
else
member_ids = member_scope.where(project_id: project).pluck(:user_id)
where(id: member_ids).or(where(id: admin_ids))