mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-14 15:16:04 +10:00
fix for project creation: group projects don't count towards user's project limit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user