Skip to content

Commit

Permalink
Improved Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
kreaweb.be committed May 8, 2024
1 parent c18ec20 commit fc0cf7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Models/Couple.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected static function booted(): void
} elseif (config('app.god_mode') && auth()->user()->is_developer) {
return true;
} else {
$builder->where('couples.team_id', auth()->user()->current_team_id);
$builder->where('couples.team_id', auth()->user()->currentTeam->id);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Person.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ protected static function booted(): void
} elseif (config('app.god_mode') && auth()->user()->is_developer) {
return true;
} else {
$builder->where('people.team_id', auth()->user()->current_team_id);
$builder->where('people.team_id', auth()->user()->currentTeam->id);
}
});
}
Expand Down

0 comments on commit fc0cf7b

Please sign in to comment.