Commit 1481d1cf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'count_user_owned_projects' of /home/git/repositories/gitlab/gitlabhq

parents 01a7250b 17346111
...@@ -235,7 +235,7 @@ class User < ActiveRecord::Base ...@@ -235,7 +235,7 @@ class User < ActiveRecord::Base
end end
def can_create_project? def can_create_project?
projects_limit > personal_projects.count projects_limit > owned_projects.count
end end
def can_create_group? def can_create_group?
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
%legend %legend
Personal projects: Personal projects:
%small.pull-right %small.pull-right
%span= current_user.personal_projects.count %span= current_user.owned_projects.count
of of
%span= current_user.projects_limit %span= current_user.projects_limit
.padded .padded
......
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