Fix User#can_create_project?

This commit is contained in:
Dmitriy Zaporozhets 2013-07-09 20:51:49 +03:00
parent b8c3f9a628
commit 03586c6c79

View file

@ -262,7 +262,7 @@ class User < ActiveRecord::Base
end end
def can_create_project? def can_create_project?
projects_limit > owned_projects.count projects_limit_left > 0
end end
def can_create_group? def can_create_group?