Commit 55cf6243 authored by Steffen Knoth's avatar Steffen Knoth

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

parent f5b7899c
......@@ -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
......
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