Commit b68bba441eaa9baf76dc2c0f9532615aaec3137b
1 parent
0125b74b
Exists in
master
and in
4 other branches
Fix projects in admin -> user -> show
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/admin/users_controller.rb
| ... | ... | @@ -10,7 +10,7 @@ class Admin::UsersController < Admin::ApplicationController |
| 10 | 10 | |
| 11 | 11 | def show |
| 12 | 12 | @projects = Project.scoped |
| 13 | - @projects = @projects.without_user(admin_user) if admin_user.authorized_projects.empty? | |
| 13 | + @projects = @projects.without_user(admin_user) if admin_user.authorized_projects.present? | |
| 14 | 14 | end |
| 15 | 15 | |
| 16 | 16 | def team_update | ... | ... |