Fix projects in admin -> user -> show

This commit is contained in:
Dmitriy Zaporozhets 2013-01-26 12:15:38 +02:00
parent 0125b74b3c
commit b68bba441e

View file

@ -10,7 +10,7 @@ class Admin::UsersController < Admin::ApplicationController
def show def show
@projects = Project.scoped @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 end
def team_update def team_update