Hide latestTeamActivity for members with employee role

This commit is contained in:
Constantin Graf
2024-04-25 16:26:42 +02:00
parent 023f6b12b5
commit c194e3547b
3 changed files with 75 additions and 2 deletions

View File

@@ -39,6 +39,15 @@ class UserFactory extends Factory
];
}
public function forCurrentOrganization(Organization $organization): static
{
return $this->state(function (array $attributes) use ($organization): array {
return [
'current_team_id' => $organization->getKey(),
];
});
}
public function randomTimeZone(): static
{
return $this->state(function (array $attributes) {