fix for project creation: group projects don't count towards user's project limit
This commit is contained in:
parent
f5b7899cf7
commit
55cf6243a4
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ class Project < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_limit
|
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")
|
errors[:limit_reached] << ("Your project limit is #{creator.projects_limit} projects! Please contact your administrator to increase it")
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
|
|
Loading…
Reference in a new issue