Commit 1481d1cfe08d875424aa59e2f3db7843cc56ab97

Authored by Dmitriy Zaporozhets
2 parents 01a7250b 17346111

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

app/models/user.rb
... ... @@ -235,7 +235,7 @@ class User < ActiveRecord::Base
235 235 end
236 236  
237 237 def can_create_project?
238   - projects_limit > personal_projects.count
  238 + projects_limit > owned_projects.count
239 239 end
240 240  
241 241 def can_create_group?
... ...
app/views/profiles/show.html.haml
... ... @@ -77,7 +77,7 @@
77 77 %legend
78 78 Personal projects:
79 79 %small.pull-right
80   - %span= current_user.personal_projects.count
  80 + %span= current_user.owned_projects.count
81 81 of
82 82 %span= current_user.projects_limit
83 83 .padded
... ...