Commit b68bba44 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix projects in admin -> user -> show

parent 0125b74b
...@@ -10,7 +10,7 @@ class Admin::UsersController < Admin::ApplicationController ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment