diff --git a/app/models/user.rb b/app/models/user.rb index ccb21a8b204b31d9a3f51c8530193fcc8ad0ea93..443ad56521965b891d072a066f39688b313fe245 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -262,7 +262,7 @@ class User < ActiveRecord::Base end def can_create_project? - projects_limit > owned_projects.count + projects_limit_left > 0 end def can_create_group?