openshift/origin-server — pull request #3582 by kraman (2013-09-09 15:12:05+00:00)
Title: Fixing code to allow admin to restrict # of domains to be less than # of gears allocated to a user.

In exiting code:
[user.max_gears || 1, Rails.configuration.openshift[:max_domains_per_user]].min
means that even if max_domains_per_user is set to 1, if the user has access to 3 gears,
they are able to create 3 domains.