fix for project creation: group projects don't count towards user's project limit

This commit is contained in:
Steffen Knoth 2014-04-09 17:27:34 +02:00
parent f5b7899cf7
commit 55cf6243a4

View file

@ -239,7 +239,7 @@ class Project < ActiveRecord::Base
end
def check_limit
unless creator.can_create_project?
unless creator.can_create_project? or namespace.kind == 'group'
errors[:limit_reached] << ("Your project limit is #{creator.projects_limit} projects! Please contact your administrator to increase it")
end
rescue