fix employee reporting request, fix billable update, fix start of week in reporting

This commit is contained in:
Gregor Vostrak
2024-05-22 16:13:08 +02:00
committed by Constantin Graf
parent c888ac7ec2
commit ce00f5f446
3 changed files with 16 additions and 1 deletions

View File

@@ -24,6 +24,12 @@ function getCurrentMembershipId() {
)?.membership.id;
}
function getCurrentRole() {
return page.props.auth.user.all_teams.find(
(team) => team.id === getCurrentOrganizationId()
)?.membership.role;
}
function getUserTimezone() {
return page.props.auth.user.timezone;
}
@@ -34,4 +40,5 @@ export {
getUserTimezone,
getWeekStart,
getCurrentMembershipId,
getCurrentRole,
};