Commit 03586c6c authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix User#can_create_project?

parent b8c3f9a6
...@@ -262,7 +262,7 @@ class User < ActiveRecord::Base ...@@ -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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment