diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-26 14:15:38 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-26 14:15:38 +0400 |
commit | b68bba441eaa9baf76dc2c0f9532615aaec3137b (patch) | |
tree | 16c224825c631dca8a5ce536f3906883d1e31fa8 /app | |
parent | 0125b74b3cbdb7df3b029cd2373b96ca3905c16a (diff) |
Fix projects in admin -> user -> show
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/admin/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb index ed421624295..400e44e086d 100644 --- a/app/controllers/admin/users_controller.rb +++ b/app/controllers/admin/users_controller.rb @@ -10,7 +10,7 @@ class Admin::UsersController < Admin::ApplicationController def show @projects = Project.scoped - @projects = @projects.without_user(admin_user) if admin_user.authorized_projects.empty? + @projects = @projects.without_user(admin_user) if admin_user.authorized_projects.present? end def team_update |