mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
Hide latestTeamActivity for members with employee role
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user