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

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

parent b97094c78d21
......@@ -239,7 +239,7 @@ def import_finished?
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