Fix projects in admin -> user -> show
This commit is contained in:
parent
0125b74b3c
commit
b68bba441e
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue