repository.rb revision f44ce1c2d9438f718397e30af7499bb8a8574780
if user
OR id IN (SELECT item_id FROM permissions WHERE item_type = 'Repository' AND subject_type = 'User' AND subject_id = ?)
OR id IN (SELECT item_id FROM permissions INNER JOIN team_users ON team_users.team_id = permissions.subject_id AND team_users.user_id = ?
else
end
end
end
end
# list all failed versions, grouped by their errors
end
end
end
end
end
end