hide shared reports create for employees, fix export request for employees

This commit is contained in:
Gregor Vostrak
2025-05-15 13:07:15 +02:00
committed by Constantin Graf
parent a3dda8b03c
commit b4edcaa2dc
3 changed files with 12 additions and 2 deletions

View File

@@ -107,6 +107,10 @@ function getFilterAttributes(): AggregatedTimeEntriesQueryParams {
: undefined,
tag_ids: selectedTags.value.length > 0 ? selectedTags.value : undefined,
billable: billable.value !== null ? billable.value : undefined,
member_id:
getCurrentRole() === 'employee'
? getCurrentMembershipId()
: undefined,
};
return params;
}