summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSteffen Knoth <knoth@fzi.de>2014-04-09 17:27:34 +0200
committerSteffen Knoth <knoth@fzi.de>2014-04-09 17:46:22 +0200
commit55cf6243a4959449d253003cff15d4e0978d08f9 (patch)
tree490715c0546b4dc8ae8d8f94232a69db77e5382e /app
parentf5b7899cf755dae81a1ba0f0ad428209e808c5d7 (diff)
downloadgitlab-ce-55cf6243a4959449d253003cff15d4e0978d08f9.tar.gz
fix for project creation: group projects don't count towards user's project limit
Diffstat (limited to 'app')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 386ab542a68..ec2c7f10fa5 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -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