summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-02 09:56:24 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-02 09:56:24 +0300
commitf3b31c4c5bdf2470ee6625f01cd4741cdb319345 (patch)
treece50f4907ea70d8d2e297d4e9d9b1ac0591036ca /app
parent4e1f9e2b8b14eeaabc8f2a779acc8c9d94f538f5 (diff)
parent55cf6243a4959449d253003cff15d4e0978d08f9 (diff)
downloadgitlab-ce-f3b31c4c5bdf2470ee6625f01cd4741cdb319345.tar.gz
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
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 33aa4e72fbc..f20581428dc 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -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