Commit 03586c6c79e093046d46379885821ba9083a0d73

Authored by Dmitriy Zaporozhets
1 parent b8c3f9a6

Fix User#can_create_project?

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/user.rb
@@ -262,7 +262,7 @@ class User < ActiveRecord::Base @@ -262,7 +262,7 @@ class User < ActiveRecord::Base
262 end 262 end
263 263
264 def can_create_project? 264 def can_create_project?
265 - projects_limit > owned_projects.count 265 + projects_limit_left > 0
266 end 266 end
267 267
268 def can_create_group? 268 def can_create_group?