Commit f3b31c4c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6629 from sykano/fix-project-limit-for-groups

fix for project creation: group projects don't count towards user's project limit
parents 4e1f9e2b 55cf6243
......@@ -243,7 +243,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment