fix user name not displayed correctly for employee users in reporting

This commit is contained in:
Gregor Vostrak
2025-05-15 12:54:30 +02:00
parent 16fed4a2b7
commit 46dea00b34
2 changed files with 13 additions and 1 deletions

View File

@@ -10,6 +10,10 @@ function getCurrentUserId() {
return page.props.auth.user.id;
}
function getCurrentUser() {
return page.props.auth.user;
}
function getCurrentOrganizationId() {
return page.props.auth.user.current_team_id;
}
@@ -31,4 +35,5 @@ export {
getCurrentUserId,
getCurrentMembershipId,
getCurrentRole,
getCurrentUser,
};