Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisdelicata committed Oct 5, 2020
1 parent f9ecfdd commit 264a405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tables/Builders/UserTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function query(): Builder
->join('user_groups', 'users.group_id', '=', 'user_groups.id')
->join('roles', 'users.role_id', '=', 'roles.id');
} else {
return User::where('id', $auth->id)
return User::where('user.id', $auth->id)
->with('person:id,appellative,name', 'avatar:id,user_id')
->selectRaw('
users.id, user_groups.name as "group", people.name, people.appellative,
Expand Down

0 comments on commit 264a405

Please sign in to comment.